From 6cc27bfa064fdefa71a905ece5c50324af55ccbb Mon Sep 17 00:00:00 2001 From: William Mortada Date: Fri, 18 Oct 2019 15:10:58 +0100 Subject: [PATCH] Don't freeze the end date if the membership is linked to a recurring payment --- CRM/Member/Form/Membership.php | 4 +--- templates/CRM/Member/Form/Membership.tpl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 383a73f63e..45864f1202 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -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); diff --git a/templates/CRM/Member/Form/Membership.tpl b/templates/CRM/Member/Form/Membership.tpl index c8d2cd5439..27a2aa5b4f 100644 --- a/templates/CRM/Member/Form/Membership.tpl +++ b/templates/CRM/Member/Form/Membership.tpl @@ -27,7 +27,7 @@ {if $cancelAutoRenew}
-

{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. Click here if you want to cancel the automatic renewal option.{/ts}

+

{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. Click here if you want to cancel the automatic renewal option.{/ts}

{/if}
-- 2.25.1