From 5cf4f9e61671410fe1fd11fb8e98ff6470e10e4c Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 4 Mar 2019 16:42:54 +1300 Subject: [PATCH] Do not load membership contribution as updateMembershipBasedOnCompletionOfContribution loads it within the function --- CRM/Financial/BAO/Payment.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CRM/Financial/BAO/Payment.php b/CRM/Financial/BAO/Payment.php index 567a27e0ee..f572cc7438 100644 --- a/CRM/Financial/BAO/Payment.php +++ b/CRM/Financial/BAO/Payment.php @@ -358,10 +358,6 @@ class CRM_Financial_BAO_Payment { */ public static function recordPayment($contributionId, $trxnData, $participantId) { list($contributionDAO, $params) = self::getContributionAndParamsInFormatForRecordFinancialTransaction($contributionId); - // load related memberships on basis of $contributionDAO object - // @todo - this is done in the function that completes payments so it's being done twice. - // test & remove. - $contributionDAO->loadRelatedMembershipObjects(); if (!$participantId) { $participantId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $contributionId, 'participant_id', 'contribution_id'); -- 2.25.1