Skip to content

Commit 3a11957

Browse files
committed
gpnf-override-parent-merge-tag-on-submission.php: Fixed an issue with parent merge tags not updating Time value on entry edit.
1 parent 7c466de commit 3a11957

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gp-nested-forms/gpnf-override-parent-merge-tag-on-submission.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ function reprocess_form_calculations( $entry_id ) {
156156
$formula = apply_filters( 'gform_calculation_formula', $formula, $form, $field, $entry );
157157

158158
// Process/Calculate the formula
159-
$parsed_formula = GFCommon::replace_variables( $formula, $form, $entry, false, false, false, 'text' );
159+
$parsed_formula = GFCommon::replace_variables( $formula, $form, $entry, false, false, false, 'text' );
160+
// phpcs:ignore Squiz.PHP.Eval.Discouraged
160161
$calculated_value = eval( 'return ' . $parsed_formula . ';' );
161162

162163
// Update the entry with the recalculated value

0 commit comments

Comments
 (0)