From 735fe42d4fef190d987021f54b35ce4c354a291b Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Mon, 12 Aug 2013 16:31:17 +0530 Subject: [PATCH] CRM-13115 fix --- CRM/Contribute/Form/ContributionBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); } -- 2.25.1