From: monishdeb Date: Tue, 22 Jul 2014 21:47:08 +0000 (+0530) Subject: CRM-15021 fix - Reenabling 'Allow other amounts' on contribution page leaves field... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ff5f7956cb0d7d223b9af472eff7854a5f81b071;p=civicrm-core.git CRM-15021 fix - Reenabling 'Allow other amounts' on contribution page leaves field inactive https://issues.civicrm.org/jira/browse/CRM-15021 --- 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']);