Skip to content

Commit 0161d8d

Browse files
authored
gw-save-and-continue-auto-load.php: Fixed an issue with Save & Continue Auto Load snippet activating on forms it should not.
1 parent 49987ed commit 0161d8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ public function is_editing_entry( $form_id ) {
165165

166166
public function is_applicable_form( $form ) {
167167
$form_id = isset( $form['id'] ) ? $form['id'] : $form;
168+
$form = GFAPI::get_form( $form_id );
168169

169-
if ( $this->is_editing_entry( $form_id ) ) {
170+
if ( $this->is_editing_entry( $form_id ) || ! rgars( $form, 'save/enabled' ) ) {
170171
return false;
171172
}
172173

0 commit comments

Comments
 (0)