fix payment type label
authordeb.monish <monish.deb@jmaconsulting.biz>
Wed, 13 Sep 2017 08:33:19 +0000 (14:03 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Wed, 13 Sep 2017 08:36:12 +0000 (14:06 +0530)
CRM/Core/Payment/Form.php

index c4e369bea3a684244884a4dcf16631c4e10dd86f..4988ee531c79c4308f889b06b4692c41e5411ee1 100644 (file)
@@ -207,8 +207,7 @@ class CRM_Core_Payment_Form {
    * @return string
    */
   public static function getPaymentTypeLabel($paymentProcessor) {
-    $paymentProcessorObject = Civi\Payment\System::singleton()->getByProcessor($paymentProcessor);
-    return ts(($paymentProcessorObject->getPaymentTypeLabel()) . ' Information');
+    return ts(($paymentProcessor['object']->getPaymentTypeLabel()) . ' Information');
   }
 
   /**