From 1a4537566f6b9a113d916b2ac7c5d3c6518a6998 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 25 Jul 2017 08:22:45 +0530 Subject: [PATCH] CRM-20947, fixed notice error for deprecated function on new Bulk entry Batch ---------------------------------------- * CRM-20947: Remove Deprecation Notice for Option group https://issues.civicrm.org/jira/browse/CRM-20947 --- CRM/Batch/Form/Entry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index d96b337de2..9f32025154 100644 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -425,7 +425,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { $paramValues = array( 'id' => $this->_batchId, // close status - 'status_id' => CRM_Core_OptionGroup::getValue('batch_status', 'Closed', 'name'), + 'status_id' => CRM_Core_PseudoConstant::getKey('CRM_Batch_BAO_Batch', 'status_id', 'Closed'), 'total' => $params['actualBatchTotal'], ); @@ -698,7 +698,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { $value['soft_credit'][$key]['soft_credit_type_id'] = $params['soft_credit_type'][$key]; } else { - $value['soft_credit'][$key]['soft_credit_type_id'] = CRM_Core_OptionGroup::getValue('soft_credit_type', 'Gift', 'name'); + $value['soft_credit'][$key]['soft_credit_type_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_ContributionSoft', 'soft_credit_type_id', 'Gift'); } } -- 2.25.1