Skip to content
Snippets Groups Projects
Unverified Commit 775418e6 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #15540 from wmortada/unfreeze_membership_end_date

#1126 - Don't freeze the end date if the membership is linked to a recurring payment
parents d67ed595 6cc27bfa
Branches 5.81
Tags 5.81.2
No related merge requests found
......@@ -213,9 +213,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
// This string makes up part of the class names, differentiating them (not sure why) from the membership fields.
$this->assign('formClass', 'membership');
parent::preProcess();
if ($this->isUpdateToExistingRecurringMembership()) {
$this->entityFields['end_date']['is_freeze'] = TRUE;
}
// get price set id.
$this->_priceSetId = CRM_Utils_Array::value('priceSetId', $_GET);
$this->set('priceSetId', $this->_priceSetId);
......
......@@ -27,7 +27,7 @@
{if $cancelAutoRenew}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
<p>{ts 1=$cancelAutoRenew}This membership is set to renew automatically {if $endDate}on {$endDate|crmDate}{/if}. You will need to cancel the auto-renew option if you want to modify the Membership Type, End Date or Membership Status. <a href="%1">Click here</a> if you want to cancel the automatic renewal option.{/ts}</p>
<p>{ts 1=$cancelAutoRenew}This membership is set to renew automatically {if $endDate}on {$endDate|crmDate}{/if}. You will need to cancel the auto-renew option if you want to modify the Membership Type or Membership Status. <a href="%1">Click here</a> if you want to cancel the automatic renewal option.{/ts}</p>
</div>
{/if}
<div class="spacer"></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment