From 354477e3e3aa47e460c6f9a080089a5d17434068 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 May 2015 01:02:09 +1200 Subject: [PATCH] CRM-16245 missing renewal box on backoffice membership pages --- CRM/Member/Form/Membership.php | 2 +- CRM/Member/Form/MembershipRenewal.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) { -- 2.25.1