Skip to content

Commit

Permalink
Merge pull request #28049 from eileenmcnaughton/current_mem
Browse files Browse the repository at this point in the history
Remove unused property from previously shared code
  • Loading branch information
eileenmcnaughton authored Nov 8, 2023
2 parents d60c94f + fde7477 commit f40de18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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'];
Expand Down
2 changes: 0 additions & 2 deletions CRM/Contribute/Form/Contribution/ThankYou.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit f40de18

Please sign in to comment.