From be2b08d49c67fd1fa0b7b4a32b19332d52627d53 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 18 Jan 2021 11:19:54 +1300 Subject: [PATCH] Remove call to loadRelatedObjects None of the ids loaded in this function are used anymore so we can remove the call to it The only reference to ids after this line is to contribution page id, which is loaded earlier --- CRM/Core/Payment/AuthorizeNetIPN.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Core/Payment/AuthorizeNetIPN.php b/CRM/Core/Payment/AuthorizeNetIPN.php index 0a36b3b328..cefee59c19 100644 --- a/CRM/Core/Payment/AuthorizeNetIPN.php +++ b/CRM/Core/Payment/AuthorizeNetIPN.php @@ -37,6 +37,7 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN { * @return bool|void * * @throws \CiviCRM_API3_Exception + * @throws \API_Exception */ public function main() { try { @@ -74,9 +75,6 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN { throw new CRM_Core_Exception("Could not find contribution recur record: {$ids['ContributionRecur']} in IPN request: " . print_r($input, TRUE)); } - $ids['paymentProcessor'] = $paymentProcessorID; - $contribution->loadRelatedObjects($input, $ids); - // check if first contribution is completed, else complete first contribution $first = TRUE; if ($contribution->contribution_status_id == 1) { -- 2.25.1