From: Eileen McNaughton Date: Wed, 8 Nov 2023 00:19:59 +0000 (+1300) Subject: Remove unused property from previously shared code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fde7477c4a0b6b203e6a91ef80f936fe6bd90c8f;p=civicrm-core.git Remove unused property from previously shared code --- diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index daf64aa0f6..5c87b87c32 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -664,8 +664,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr private function buildMembershipBlock($cid, $selectedMembershipTypeID = NULL, $isTest = NULL) { $separateMembershipPayment = FALSE; if ($this->_membershipBlock) { - $this->_currentMemberships = []; - $membershipTypeIds = $membershipTypes = []; $membershipPriceset = (!empty($this->_priceSetId) && $this->_useForMember); @@ -730,7 +728,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr if ($membership->find(TRUE)) { $this->assign('renewal_mode', TRUE); $memType['current_membership'] = $membership->end_date; - $this->_currentMemberships[$membership->membership_type_id] = $membership->membership_type_id; } } $membershipTypes[] = $memType; @@ -761,7 +758,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr if ($membership && $membership['membership_type_id.duration_unit:name'] !== 'lifetime') { $this->assign('renewal_mode', TRUE); - $this->_currentMemberships[$membership['membership_type_id']] = $membership['membership_type_id']; $memType['current_membership'] = $membership['end_date']; if (!$endDate) { $endDate = $memType['current_membership']; diff --git a/CRM/Contribute/Form/Contribution/ThankYou.php b/CRM/Contribute/Form/Contribution/ThankYou.php index 60e14469b5..73b35b4d3a 100644 --- a/CRM/Contribute/Form/Contribution/ThankYou.php +++ b/CRM/Contribute/Form/Contribution/ThankYou.php @@ -309,7 +309,6 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont private function buildMembershipBlock($cid, $selectedMembershipTypeID = NULL, $isTest = NULL) { $separateMembershipPayment = FALSE; if ($this->_membershipBlock) { - $this->_currentMemberships = []; $membershipTypeIds = $membershipTypes = []; $membershipPriceset = (!empty($this->_priceSetId) && $this->_useForMember); @@ -397,7 +396,6 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont if ($membership && $membership['membership_type_id.duration_unit:name'] !== 'lifetime') { $this->assign('renewal_mode', TRUE); - $this->_currentMemberships[$membership['membership_type_id']] = $membership['membership_type_id']; $memType['current_membership'] = $membership['end_date']; if (!$endDate) { $endDate = $memType['current_membership'];