From 2c4db3047d25e446923097d55983a655a3fb9fed Mon Sep 17 00:00:00 2001 From: Edsel Date: Tue, 16 Feb 2016 13:02:30 +0530 Subject: [PATCH] CRM-16259 CIVI-3 Removed nullArray reference ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- CRM/Contribute/Form/AdditionalPayment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/AdditionalPayment.php b/CRM/Contribute/Form/AdditionalPayment.php index b6f2464c4b..0077c79128 100644 --- a/CRM/Contribute/Form/AdditionalPayment.php +++ b/CRM/Contribute/Form/AdditionalPayment.php @@ -382,10 +382,11 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract $this->processCreditCard($submittedValues); } else { + $defaults = array(); $result = CRM_Contribute_BAO_Contribution::recordAdditionalPayment($this->_contributionId, $submittedValues, $this->_paymentType, $participantId); // Fetch the contribution & do proportional line item assignment $params = array('id' => $this->_contributionId); - $contribution = CRM_Contribute_BAO_Contribution::retrieve($params, CRM_Core_DAO::$_nullArray, $params); + $contribution = CRM_Contribute_BAO_Contribution::retrieve($params, $defaults, $params); $lineItems = CRM_Price_BAO_LineItem::getLineItemsByContributionID($this->_contributionId); if (!empty($lineItems)) { CRM_Contribute_BAO_Contribution::addPayments($lineItems, array($contribution)); -- 2.25.1