From 2626747cd0fbb9e52b8c6a9980ecb510296a9c53 Mon Sep 17 00:00:00 2001 From: Saif Sultan Date: Thu, 22 May 2025 18:29:38 +0530 Subject: [PATCH] `gpnf-child-products-in-parent-order-summary.php`: Fixed an issue with snippet not working in some scenarios. --- gp-nested-forms/gpnf-child-products-in-parent-order-summary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gp-nested-forms/gpnf-child-products-in-parent-order-summary.php b/gp-nested-forms/gpnf-child-products-in-parent-order-summary.php index 1300bf1bf..cdff5772c 100644 --- a/gp-nested-forms/gpnf-child-products-in-parent-order-summary.php +++ b/gp-nested-forms/gpnf-child-products-in-parent-order-summary.php @@ -23,7 +23,7 @@ $child_products = array(); - preg_match_all( '/{[^{]*?:([0-9]+):(sum|total|count)=?([0-9]*)}/', $field->calculationFormula, $matches, PREG_SET_ORDER ); + preg_match_all( '/{[^{]*?:([0-9]+):(sum|total)=?([0-9]*)}/', $field->calculationFormula, $matches, PREG_SET_ORDER ); foreach ( $matches as $match ) { list( ,$nested_form_field_id,, ) = $match;