CRM-16092 fix - Incorrect API call in Civi/Payment/System.php
authormonishdeb <monish.deb@webaccessglobal.com>
Thu, 12 Mar 2015 07:01:01 +0000 (12:31 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Thu, 12 Mar 2015 07:01:01 +0000 (12:31 +0530)
https://issues.civicrm.org/jira/browse/CRM-16092

Civi/Payment/System.php

index 29538b64bf7d95cf75d80186c5d33048faa09229..bef62f79dd5bb2167f1fa8cd3a1a69e4df16c810 100644 (file)
@@ -63,7 +63,7 @@ class System {
    * @throws \CiviCRM_API3_Exception
    */
   public function getById($id) {
-    $processor = civicrm_api3('payment_processor', 'get_single', array('id' => $id));
+    $processor = civicrm_api3('payment_processor', 'getsingle', array('id' => $id));
     return self::getByProcessor($processor);
   }
 
@@ -73,7 +73,7 @@ class System {
    * @throws \CiviCRM_API3_Exception
    */
   public function getByName($name, $is_test) {
-    $processor = civicrm_api3('payment_processor', 'get_single', array('name' => $name, 'is_test' => $is_test));
+    $processor = civicrm_api3('payment_processor', 'getsingle', array('name' => $name, 'is_test' => $is_test));
     return self::getByProcessor($processor);
   }