Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@
}

foreach ( $inputs as $input ) {
$this->override_child_entry_input_value( $entry, $field, $child_form, $input['id'], rgar( $input, 'defaultValue' ) );
$default_value = ( $child_field->type != 'time' )

Check failure on line 98 in gp-nested-forms/gpnf-override-parent-merge-tag-on-submission.php

View workflow job for this annotation

GitHub Actions / PHPCS (Files Changed)

Whitespace found at end of line
? rgar( $input, 'defaultValue' )

Check failure on line 99 in gp-nested-forms/gpnf-override-parent-merge-tag-on-submission.php

View workflow job for this annotation

GitHub Actions / PHPCS (Files Changed)

Whitespace found at end of line
: preg_replace('/(\d+)\.\d+/', '$1', rgar( $child_field['inputs'][0], 'defaultValue' ) );

Check failure on line 100 in gp-nested-forms/gpnf-override-parent-merge-tag-on-submission.php

View workflow job for this annotation

GitHub Actions / PHPCS (Files Changed)

Expected 1 spaces after opening parenthesis; 0 found

$this->override_child_entry_input_value( $entry, $field, $child_form, $input['id'], $default_value );
}
}
}
Expand Down
Loading