From: Bradley Taylor Date: Sun, 5 Nov 2023 11:14:52 +0000 (+0000) Subject: [REF][PHP8.2] Remove unused dynamic props X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cd9cbb00cad55ed1306d6ca1f45f68708cbdc43c;p=civicrm-core.git [REF][PHP8.2] Remove unused dynamic props --- diff --git a/CRM/Contribute/Form/AdditionalPayment.php b/CRM/Contribute/Form/AdditionalPayment.php index e6e6cb824c..370f41ad56 100644 --- a/CRM/Contribute/Form/AdditionalPayment.php +++ b/CRM/Contribute/Form/AdditionalPayment.php @@ -85,12 +85,8 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract $this->_contributionId = $this->_id; } - $paymentDetails = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_id, $this->_component, FALSE, TRUE); $paymentAmt = $this->getAmountDue(); - $this->_amtPaid = $paymentDetails['paid']; - $this->_amtTotal = $paymentDetails['total']; - if ($paymentAmt >= 0) { $this->_owed = $paymentAmt; } @@ -468,11 +464,7 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract if (!empty($params['contribution_id'])) { $this->_contributionId = $params['contribution_id']; - $paymentDetails = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_contributionId, $entityType, FALSE, TRUE); - $paymentAmount = $this->getAmountDue(); - $this->_amtPaid = $paymentDetails['paid']; - $this->_amtTotal = $paymentDetails['total']; if ($paymentAmount > 0) { $this->_owed = $paymentAmount;