Skip to content

Commit

Permalink
gppa-gpeb-force-rehydration-on-edit.php: Fixed issue with rehydrati…
Browse files Browse the repository at this point in the history
…on not working on GPEB entry.
  • Loading branch information
saifsultanc committed Jan 8, 2025
1 parent 5c55a26 commit 9cc3496
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$form = GFAPI::get_form( $form_id );
foreach ( $form['fields'] as &$field ) {
if ( in_array( $field->id, $field_ids ) ) {
$hydrated_field = gp_populate_anything()->populate_field( $field, $form, array(), gp_populate_anything()->get_posted_field_values( $form ) );
$hydrated_field = gp_populate_anything()->populate_field( $field, $form, gp_populate_anything()->get_posted_field_values( $form ), array() );
$entry[ $field->id ] = $hydrated_field['field_value'];
}
}
Expand Down

0 comments on commit 9cc3496

Please sign in to comment.