$freezeOptions = [],
array $extra = []
) {
-
+ $incomingExtra = $extra;
$field = new CRM_Price_DAO_PriceField();
$field->id = $fieldId;
if (!$field->find(TRUE)) {
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 += [