CRM-16882 renew my membership automatically should not show for non-auto-renew member...
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 22 Jul 2015 02:38:03 +0000 (14:38 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Thu, 30 Jul 2015 00:30:24 +0000 (12:30 +1200)
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

Conflicts:
CRM/Member/BAO/Membership.php

CRM/Contribute/Form/ContributionBase.php

index f21168234445608e66fba0c4567422697efee589..a81bf836b5f7e1710bf45d74dcfe9c94f4bc82eb 100644 (file)
@@ -932,7 +932,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
           }
           elseif ($memType['is_active']) {
             $javascriptMethod = NULL;
-            $allowAutoRenewOpt = 1;
+            $allowAutoRenewOpt = (int) $memType['auto_renew'];
             if (is_array($this->_paymentProcessors)) {
               foreach ($this->_paymentProcessors as $id => $val) {
                 if (!$val['is_recur']) {