From: Eileen McNaughton Date: Wed, 13 May 2015 13:02:09 +0000 (+1200) Subject: CRM-16245 missing renewal box on backoffice membership pages X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=354477e3e3aa47e460c6f9a080089a5d17434068;p=civicrm-core.git CRM-16245 missing renewal box on backoffice membership pages --- diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 3e65fbe17f..d41d8ae775 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -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)) { diff --git a/CRM/Member/Form/MembershipRenewal.php b/CRM/Member/Form/MembershipRenewal.php index ffafcf6d93..d5f43d5045 100644 --- a/CRM/Member/Form/MembershipRenewal.php +++ b/CRM/Member/Form/MembershipRenewal.php @@ -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)) {