From 87d75c17d1eb404ebb47ae34ea74f40255ebef58 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 27 Dec 2016 04:07:26 +0530 Subject: [PATCH] CRM-19799, fixed contribution params to include line items ---------------------------------------- * CRM-19799: LineItems incorrect at both Contribution Level and Financial Accounts Level https://issues.civicrm.org/jira/browse/CRM-19799 --- CRM/Contribute/BAO/Contribution/Utils.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contribute/BAO/Contribution/Utils.php b/CRM/Contribute/BAO/Contribution/Utils.php index 9ceea35380..58fdea9ad5 100644 --- a/CRM/Contribute/BAO/Contribution/Utils.php +++ b/CRM/Contribute/BAO/Contribution/Utils.php @@ -110,6 +110,9 @@ class CRM_Contribute_BAO_Contribution_Utils { // @todo make sure this is consisently set at this point. $contributionParams['line_item'] = $paymentParams['line_item']; } + elseif (isset($form->_lineItem)) { + $contributionParams['line_item'] = $form->_lineItem; + } if (!empty($form->_paymentProcessor)) { $contributionParams['payment_instrument_id'] = $paymentParams['payment_instrument_id'] = $form->_paymentProcessor['payment_instrument_id']; } -- 2.25.1