CRM-13115 fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 12 Aug 2013 11:01:17 +0000 (16:31 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 12 Aug 2013 11:01:17 +0000 (16:31 +0530)
CRM/Contribute/Form/ContributionBase.php

index ea07642459b6c1e8c61dcfd38a23a08bbce2d03c..d5cfee580de1a756a5ddb7de5c5571b1d9291544 100644 (file)
@@ -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]);
       }