From c896bbe546f496d456b3513deb5b63b442f4f003 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 1 Sep 2015 16:58:04 -0700 Subject: [PATCH] CRM-17120 - Use CRM_Core_Pseudoconstant to lookup option labels --- CRM/Financial/Page/AJAX.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Financial/Page/AJAX.php b/CRM/Financial/Page/AJAX.php index 5873a29519..2ed6edd9f2 100644 --- a/CRM/Financial/Page/AJAX.php +++ b/CRM/Financial/Page/AJAX.php @@ -207,7 +207,7 @@ class CRM_Financial_Page_AJAX { case 'remove': $recordPID = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialTrxn', $recordID, 'payment_instrument_id'); $batchPID = CRM_Core_DAO::getFieldValue('CRM_Batch_DAO_Batch', $entityID, 'payment_instrument_id'); - $paymentInstrument = CRM_Core_OptionGroup::getLabel('payment_instrument', $batchPID); + $paymentInstrument = CRM_Core_PseudoConstant::getLabel('CRM_Batch_BAO_Batch', 'payment_instrument_id', $batchPID); if ($op == 'remove' || ($recordPID == $batchPID && $op == 'assign') || !isset($batchPID)) { $params = array( 'entity_id' => $recordID, -- 2.25.1