From 96cba2ebb57c70a204a57869b4ed6652e8feed7f Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 30 Sep 2014 11:27:19 +0100 Subject: [PATCH] CRM-14868 Formatting fix ---------------------------------------- * CRM-14868: '$' in amount_other causes error https://issues.civicrm.org/jira/browse/CRM-14868 --- 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 90909fbfc9..b6c6a179d7 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -1263,7 +1263,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu foreach ( $this->_values['fee'] as $key => & $val ) { if ( $val['name'] == 'other_amount' && $val['html_type'] == 'Text' && array_key_exists( 'price_'.$key, $params ) ) { $params['price_'.$key] = CRM_Utils_Rule::cleanMoney($params['price_'.$key]); //Clean out any currency symbols - if ($params['price_'.$key] != 0) { + if ( $params['price_'.$key] != 0 ) { foreach ( $val['options'] as $optionKey => & $options ) { $options['amount'] = CRM_Utils_Array::value( 'price_'.$key, $params ); break; -- 2.25.1