From 7f0ddece482cb5774eb8daf1a4eb433a48689b4e Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 28 Jul 2017 22:14:49 +0530 Subject: [PATCH] CRM-20947, fixed notice error for deprecated function on batch form ---------------------------------------- * CRM-20947: Remove Deprecation Notice for Option group https://issues.civicrm.org/jira/browse/CRM-20947 --- CRM/Batch/Form/Batch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Batch/Form/Batch.php b/CRM/Batch/Form/Batch.php index 763be3cda1..529bbdae23 100644 --- a/CRM/Batch/Form/Batch.php +++ b/CRM/Batch/Form/Batch.php @@ -104,7 +104,7 @@ class CRM_Batch_Form_Batch extends CRM_Admin_Form { } // always create with data entry status - $params['status_id'] = CRM_Core_OptionGroup::getValue('batch_status', 'Data Entry', 'name'); + $params['status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Batch_BAO_Batch', 'status_id', 'Data Entry'); $batch = CRM_Batch_BAO_Batch::create($params); // redirect to batch entry page. -- 2.25.1