Skip to content

Commit 2626747

Browse files
committed
gpnf-child-products-in-parent-order-summary.php: Fixed an issue with snippet not working in some scenarios.
1 parent 54c5969 commit 2626747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-nested-forms/gpnf-child-products-in-parent-order-summary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
$child_products = array();
2525

26-
preg_match_all( '/{[^{]*?:([0-9]+):(sum|total|count)=?([0-9]*)}/', $field->calculationFormula, $matches, PREG_SET_ORDER );
26+
preg_match_all( '/{[^{]*?:([0-9]+):(sum|total)=?([0-9]*)}/', $field->calculationFormula, $matches, PREG_SET_ORDER );
2727
foreach ( $matches as $match ) {
2828

2929
list( ,$nested_form_field_id,, ) = $match;

0 commit comments

Comments
 (0)