From: Pradeep Nayak Date: Mon, 26 Dec 2016 22:37:26 +0000 (+0530) Subject: CRM-19799, fixed contribution params to include line items X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=87d75c17d1eb404ebb47ae34ea74f40255ebef58;p=civicrm-core.git 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 --- 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']; }