diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index daf64aa0f6c7..5c87b87c3272 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -664,8 +664,6 @@ public function buildQuickForm() { 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 @@ private function buildMembershipBlock($cid, $selectedMembershipTypeID = NULL, $i 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 @@ private function buildMembershipBlock($cid, $selectedMembershipTypeID = NULL, $i 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 60e14469b52b..73b35b4d3ab8 100644 --- a/CRM/Contribute/Form/Contribution/ThankYou.php +++ b/CRM/Contribute/Form/Contribution/ThankYou.php @@ -309,7 +309,6 @@ public function buildQuickForm() { 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 @@ private function buildMembershipBlock($cid, $selectedMembershipTypeID = NULL, $i 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'];