CRM-16245 missing renewal box on backoffice membership pages
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 13 May 2015 13:02:09 +0000 (01:02 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 13 May 2015 13:02:09 +0000 (01:02 +1200)
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipRenewal.php

index 3e65fbe17f876ba742e21af6f1c70456d8386d02..d41d8ae775bfd45497d9ac2c315df2f013a79ce6 100644 (file)
@@ -551,7 +551,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
         //get the valid recurring processors.
         $test = strtolower($this->_mode) == 'test' ? TRUE : FALSE;
         $recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, $test, 'is_recur = 1');
-        $recurProcessor = array_intersect_assoc($this->_processors, $recurring);
+        $recurProcessor = array_intersect_key($this->_processors, $recurring);
         $autoRenew = array();
         if (!empty($recurProcessor)) {
           if (!empty($membershipType)) {
index ffafcf6d9344083ff57bdf0cc35fb93e6fbd91ca..d5f43d50454cad1dbb4f8f974dd046d9b7e06e23 100644 (file)
@@ -327,7 +327,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form {
       //get the valid recurring processors.
       $test = strtolower($this->_mode) == 'test' ? TRUE : FALSE;
       $recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, $test, 'is_recur = 1');
-      $recurProcessor = array_intersect_assoc($this->_processors, $recurring);
+      $recurProcessor = array_intersect_key($this->_processors, $recurring);
       if (!empty($recurProcessor)) {
         $autoRenew = array();
         if (!empty($membershipType)) {