From b3453b53140516f3c2afcfa6e4b8a9f01c5945ae Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 13 Sep 2017 14:03:19 +0530 Subject: [PATCH] fix payment type label --- CRM/Core/Payment/Form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index c4e369bea3..4988ee531c 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -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'); } /** -- 2.25.1