From: Pratik Joshi Date: Mon, 12 Aug 2013 11:01:17 +0000 (+0530) Subject: CRM-13115 fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=735fe42d4fef190d987021f54b35ce4c354a291b;p=civicrm-core.git CRM-13115 fix --- diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index ea07642459..d5cfee580d 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -544,8 +544,8 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { $this->_params[$v] = $frequencyUnits[$this->_params[$v]]; } } - if ($v == "amount") { - $this->_params[$v] = CRM_Utils_Money::format($this->_params[$v], ' '); + if ($v == "amount" && $this->_params[$v] === 0) { + $this->_params[$v] = CRM_Utils_Money::format($this->_params[$v], NULL, NULL, TRUE); } $this->assign($v, $this->_params[$v]); }