CRM-16245 follow up fix on recurring processors not displaying
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 27 Apr 2015 16:07:34 +0000 (10:07 -0600)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 27 Apr 2015 16:07:34 +0000 (10:07 -0600)
CRM/Contribute/Form/AbstractEditPayment.php

index 1c2184c9ad3621288d6f71ea25d5ad77da76eb46..c3b971d3d3b179abb676480c90d7894f1e1a9ad2 100644 (file)
@@ -439,7 +439,7 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
       //get the valid recurring processors.
       $test = strtolower($this->_mode) == 'test' ? TRUE : FALSE;
       $recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, $test, 'is_recur = 1');
-      $this->_recurPaymentProcessors = array_intersect_assoc($this->_processors, $recurring);
+      $this->_recurPaymentProcessors = array_intersect_key($this->_processors, $recurring);
     }
     $this->assign('recurringPaymentProcessorIds',
       empty($this->_recurPaymentProcessors) ? '' : implode(',', array_keys($this->_recurPaymentProcessors))