From ff5f7956cb0d7d223b9af472eff7854a5f81b071 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 23 Jul 2014 03:17:08 +0530 Subject: [PATCH] CRM-15021 fix - Reenabling 'Allow other amounts' on contribution page leaves field inactive https://issues.civicrm.org/jira/browse/CRM-15021 --- CRM/Contribute/Form/ContributionPage/Amount.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contribute/Form/ContributionPage/Amount.php b/CRM/Contribute/Form/ContributionPage/Amount.php index 32cd17749b..75c0a01bf5 100644 --- a/CRM/Contribute/Form/ContributionPage/Amount.php +++ b/CRM/Contribute/Form/ContributionPage/Amount.php @@ -649,6 +649,7 @@ SELECT id } else { if (empty($editedResults['is_active'])) { + $fieldParams = $editedResults; if (!$noContriAmount) { $priceFieldValueID = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceFieldValue', $priceFieldID, 'id', 'price_field_id'); CRM_Core_DAO::setFieldValue('CRM_Price_DAO_PriceFieldValue', $priceFieldValueID, 'label', $params['amount_label']); -- 2.25.1