From 25e92485eb09005a0723353690d3f4b32d3f6ce7 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 23 May 2013 19:49:12 +0530 Subject: [PATCH] -- fixed for CRM-12680, line items were not created properly when trying to submit credit card contribution ---------------------------------------- * CRM-12680: Contribution of multiple financial types in single field creates unbalanced transaction http://issues.civicrm.org/jira/browse/CRM-12680 --- CRM/Contribute/Form/Contribution.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 22391fb4f6..0253899e4d 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1374,7 +1374,12 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP unset($submittedValues[$key]); } } - + + // CRM-12680 set $_lineItem if its not set + if (empty($this->_lineItem) && !empty($lineItem)) { + $this->_lineItem = $lineItem; + } + //Get the rquire fields value only. $params = $this->_params = $submittedValues; -- 2.25.1