From cd9cbb00cad55ed1306d6ca1f45f68708cbdc43c Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 5 Nov 2023 11:14:52 +0000 Subject: [PATCH] [REF][PHP8.2] Remove unused dynamic props --- CRM/Contribute/Form/AdditionalPayment.php | 8 -------- 1 file changed, 8 deletions(-) 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; -- 2.25.1