From 3b557cc839631843c4450b5af24049509677859c Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Fri, 7 Jun 2013 21:29:59 +0530 Subject: [PATCH] -- CRM-12771 offline contribution page break fix ---------------------------------------- * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index b42af2d888..e6569faf61 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -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); -- 2.25.1