Skip to content

Commit 7ffba0c

Browse files
committed
Fixed issue where form id comparison would not work because one was a string and another an int.
1 parent b3add99 commit 7ffba0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gravity-forms/gw-save-and-continue-auto-load.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,17 @@ public function get_confirmation_message( $form ) {
144144
}
145145

146146

147+
/**
148+
* Checks to see if the context is the GP Entry Block Editor.
149+
*/
147150
public function is_editing_entry( $form_id ) {
148151
if ( ! method_exists( 'GP_Entry_Blocks\GF_Queryer', 'attach_to_current_block' ) ) {
149152
return false;
150153
}
151154

152155
$entry_block = GP_Entry_Blocks\GF_Queryer::attach_to_current_block();
153156

154-
return $entry_block && $entry_block->is_edit_entry() && $entry_block->form_id === $form_id;
157+
return $entry_block && $entry_block->is_edit_entry() && $entry_block->form_id == $form_id;
155158
}
156159

157160
public function is_applicable_form( $form ) {

0 commit comments

Comments
 (0)