From d7c85e2c80a4a83bff0d1df62e36b4ff58d81e7e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 18 Oct 2023 10:30:31 +1300 Subject: [PATCH] Fix regression on premium block --- CRM/Price/BAO/PriceField.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index 48e16f26b9..cb5903a138 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -252,7 +252,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { $freezeOptions = [], array $extra = [] ) { - + $incomingExtra = $extra; $field = new CRM_Price_DAO_PriceField(); $field->id = $fieldId; if (!$field->find(TRUE)) { @@ -367,13 +367,13 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { else { $visibility_id = self::getVisibilityOptionID('public'); } - $extra += [ + $extra = [ 'price' => json_encode([$elementName, $priceOptionText['priceVal']]), 'data-amount' => $opt[$valueFieldName], 'data-currency' => $currencyName, 'data-price-field-values' => json_encode($customOption), 'visibility' => $visibility_id, - ]; + ] + $incomingExtra; // @todo - move this back to the only calling function on Contribution_Form_Main.php if ($field->name == 'membership_amount') { $extra += [ -- 2.25.1