Skip to content

Commit 794a6ae

Browse files
authored
Merge pull request #137 from BoldGrid/issue-65-pro
Updated after submission to form setting from global
2 parents 4343bc5 + 197cb84 commit 794a6ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/class-ajax.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function save_form() {
135135
// Update Old Entry meta_key if changed
136136
$form_id = $form_data['wpuf_form_id'];
137137
$form = weforms()->form->get( $form_id );
138-
138+
139139
$form->maybe_update_entries( $form_fields );
140140

141141
do_action( 'weforms_update_form', $form_data['wpuf_form_id'], $form_fields, $settings );
@@ -761,7 +761,7 @@ public function handle_frontend_submission() {
761761

762762
$entry_id = 1;
763763
$global_settings = weforms_get_settings();
764-
if ( empty( $global_settings['after_submission'] ) ) {
764+
if ( empty( $form_settings['after_submission'] ) ) {
765765
$entry_id = weforms_insert_entry( [
766766
'form_id' => $form_id,
767767
], $entry_fields );
@@ -778,7 +778,7 @@ public function handle_frontend_submission() {
778778
'page_id' => $page_id,
779779
'entry_id' => $entry_id,
780780
] );
781-
$notification->send_notifications();
781+
$notification->send_notifications();
782782
}
783783
// redirect URL
784784
$show_message = false;

0 commit comments

Comments
 (0)