From: Pradeep Nayak Date: Fri, 28 Jul 2017 16:44:49 +0000 (+0530) Subject: CRM-20947, fixed notice error for deprecated function on batch form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7f0ddece482cb5774eb8daf1a4eb433a48689b4e;p=civicrm-core.git 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 --- 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.