Skip to content
Snippets Groups Projects
Commit 6cc27bfa authored by wmortada's avatar wmortada
Browse files

Don't freeze the end date if the membership is linked to a recurring payment

parent cb886874
Branches
Tags
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.
Please register or to comment