CRM-16105 - For ofline contributions recurring option does not appear
authoratif-shaikh <shaikh388@gmail.com>
Fri, 13 Mar 2015 12:34:49 +0000 (18:04 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Fri, 13 Mar 2015 12:34:49 +0000 (18:04 +0530)
https://issues.civicrm.org/jira/browse/CRM-16105

CRM/Contribute/Form/AbstractEditPayment.php

index bf847ce37a33d539bd6f390afcee8f729ada4633..4630d49a281211362958f824890b43cfce7dbaf0 100644 (file)
@@ -423,7 +423,8 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
         $this->_processors[$id] = ts($processor['name']);
       }
       //get the valid recurring processors.
-      $recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, FALSE, 'is_recur = 1');
+      $test = $this->_mode == strtolower('test') ? TRUE : FALSE;
+      $recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, $test, 'is_recur = 1');
       $this->_recurPaymentProcessors = array_intersect_assoc($this->_processors, $recurring);
     }
     $this->assign('recurringPaymentProcessorIds',