-- CRM-12771 offline contribution page break fix
authorRavish Nair <ravish.nair@webaccess.co.in>
Fri, 7 Jun 2013 15:59:59 +0000 (21:29 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Mon, 10 Jun 2013 14:55:18 +0000 (20:25 +0530)
----------------------------------------
* CRM-12771: contribution pages with a zero amount are not generating receipts or creating contribution records
  http://issues.civicrm.org/jira/browse/CRM-12771

CRM/Contribute/Form/Contribution.php

index b42af2d888dc82205749a4c61683608c753b1c75..e6569faf6194d822d5348b33da61ef7e0f9c903e 100644 (file)
@@ -1087,7 +1087,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
       }
     }
 
-    if (!CRM_Utils_Array::value('total_amount', $submittedValues)) {
+    if (!isset($submittedValues['total_amount'])) {
       $submittedValues['total_amount'] = CRM_Utils_Array::value('total_amount', $this->_values);
     }
     $this->assign('lineItem', !empty($lineItem) && !$isQuickConfig ? $lineItem : FALSE);