From 387fd5aa700ce6055bd5c48a9c273a65a3e66ef8 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 10 Mar 2015 11:41:27 +0530 Subject: [PATCH] CRM-16064 fix - Contributions pricesets charge $1 more than selected https://issues.civicrm.org/jira/browse/CRM-16064 --- CRM/Contribute/Form/Contribution/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 6ad81b8052..19ebeb6bae 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -1281,7 +1281,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $is_quick_config = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $priceSetId, 'is_quick_config'); if ($is_quick_config) { foreach ($this->_values['fee'] as $key => & $val) { - if ($val['name'] == 'other_amount' && $val['html_type'] == 'Text' && array_key_exists('price_' . $key, $params)) { + if ($val['name'] == 'other_amount' && $val['html_type'] == 'Text' && !empty($params['price_' . $key])) { $params['price_' . $key] = CRM_Utils_Rule::cleanMoney($params['price_' . $key]); //Clean out any currency symbols if ($params['price_' . $key] != 0) { foreach ($val['options'] as $optionKey => & $options) { -- 2.25.1