From 5dfc4a66e8813cc2ce3224017f84d3a31618cd0a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 22 Jul 2015 14:38:03 +1200 Subject: [PATCH] CRM-16882 renew my membership automatically should not show for non-auto-renew memberships I am not convinced this is the full story on CRM-16882 - however, it makes the symptom disappear, at least in one instance & the logic of the change is strong - ie. when iterating through the memberships to determine auto-renewability we should check whether they are auto-renew --- CRM/Member/BAO/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 31e293d5e5..05045c925a 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -838,7 +838,7 @@ INNER JOIN civicrm_membership_type type ON ( type.id = membership.membership_ty } elseif ($memType['is_active']) { $javascriptMethod = NULL; - $allowAutoRenewOpt = 1; + $allowAutoRenewOpt = (int) $memType['auto_renew']; if (is_array($form->_paymentProcessors)) { foreach ($form->_paymentProcessors as $id => $val) { if (!$val['is_recur']) { -- 2.25.1