Skip to content

Commit d15c869

Browse files
committed
gw-multiple-entries-list-field.php: Updated snippet to send notifications for created entries.
1 parent 2c3d37a commit d15c869

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gravity-forms/gw-multiple-entries-list-field.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function create_multiple_entries( $entry ) {
6060

6161
$data = maybe_unserialize( $data );
6262
$working_entry = $entry;
63+
$form = GFAPI::get_form( $entry['form_id'] );
6364

6465
if ( ! $this->_args['preserve_list_data'] ) {
6566
$working_entry[ $this->_args['field_id'] ] = null;
@@ -91,6 +92,9 @@ public function create_multiple_entries( $entry ) {
9192
gform_add_meta( $entry_id, 'gwmelf_group_entry_id', $entry['id'] );
9293

9394
}
95+
96+
// send Gravity Form notifications
97+
GFAPI::send_notifications( $form, $working_entry );
9498
}
9599

96100
return $entry;

0 commit comments

Comments
 (0)