Skip to content

Commit b47bd13

Browse files
committed
gpnf-attach-child-entry-by-field.php: Fixed an issue with snippet not working on nested modal failed validation.
1 parent 1298ead commit b47bd13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-nested-forms/gpnf-attach-child-entry-by-field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function attach_child_entry_to_parent( $child_entry ) {
5252
}
5353

5454
public function hide_parent_entry_id_field( $form ) {
55-
if ( ! $this->is_applicable_child_form( $form ) || rgar( $_REQUEST, 'action' ) !== 'gpnf_refresh_markup' ) {
55+
if ( ! $this->is_applicable_child_form( $form ) || ( rgar( $_REQUEST, 'action' ) !== 'gpnf_refresh_markup' ) && ! rgpost( 'gform_submission_method' ) ) {
5656
return $form;
5757
}
5858
foreach ( $form['fields'] as &$field ) {

0 commit comments

Comments
 (0)