CRM-16259 CIVI-3 Removed nullArray reference
authorEdsel <edsel.lopez@jmaconsulting.biz>
Tue, 16 Feb 2016 07:32:30 +0000 (13:02 +0530)
committerEdsel <edsel.lopez@jmaconsulting.biz>
Tue, 16 Feb 2016 07:32:30 +0000 (13:02 +0530)
----------------------------------------
* CRM-16259: Create Payment API
  https://issues.civicrm.org/jira/browse/CRM-16259

CRM/Contribute/Form/AdditionalPayment.php

index b6f2464c4b0e09c953c01b044babcfb71353a811..0077c7912871144a3abd9ee175f5a283e2086f34 100644 (file)
@@ -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));