CRM-15021 fix - Reenabling 'Allow other amounts' on contribution page leaves field...
authormonishdeb <monish.deb@webaccessglobal.com>
Tue, 22 Jul 2014 21:47:08 +0000 (03:17 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 22 Jul 2014 21:47:08 +0000 (03:17 +0530)
https://issues.civicrm.org/jira/browse/CRM-15021

CRM/Contribute/Form/ContributionPage/Amount.php

index 32cd17749b9f4c24661d4181c6096edf52c9d5d1..75c0a01bf57f2790a1d47c16e8f410088d0b365e 100644 (file)
@@ -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']);