From: Edsel Date: Tue, 16 Feb 2016 07:32:30 +0000 (+0530) Subject: CRM-16259 CIVI-3 Removed nullArray reference X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2c4db3047d25e446923097d55983a655a3fb9fed;p=civicrm-core.git CRM-16259 CIVI-3 Removed nullArray reference ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- 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));