From 81eb483d48ccf567a65e84233a155034d74e2241 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 31 Jul 2017 07:27:54 +0530 Subject: [PATCH] CRM-20947, fixed notice error on Activity tab ---------------------------------------- * CRM-20947: Remove Deprecation Notice for Option group https://issues.civicrm.org/jira/browse/CRM-20947 --- CRM/Activity/Page/Tab.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/CRM/Activity/Page/Tab.php b/CRM/Activity/Page/Tab.php index 84c9f096fa..de6a0f35d2 100644 --- a/CRM/Activity/Page/Tab.php +++ b/CRM/Activity/Page/Tab.php @@ -73,14 +73,14 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page { $activityTypeId = CRM_Utils_Request::retrieve('atype', 'Positive', $this); // Email and Create Letter activities use a different form class - $emailTypeValue = CRM_Core_OptionGroup::getValue('activity_type', - 'Email', - 'name' + $emailTypeValue = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', + 'activity_type_id', + 'Email' ); - $letterTypeValue = CRM_Core_OptionGroup::getValue('activity_type', - 'Print PDF Letter', - 'name' + $letterTypeValue = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', + 'activity_type_id', + 'Print PDF Letter' ); switch ($activityTypeId) { @@ -189,14 +189,14 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page { $activityTypeId = CRM_Utils_Request::retrieve('atype', 'Positive', $this); // Email and Create Letter activities use a different form class - $emailTypeValue = CRM_Core_OptionGroup::getValue('activity_type', - 'Email', - 'name' + $emailTypeValue = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', + 'activity_type_id', + 'Email' ); - $letterTypeValue = CRM_Core_OptionGroup::getValue('activity_type', - 'Print PDF Letter', - 'name' + $letterTypeValue = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', + 'activity_type_id', + 'Print PDF Letter' ); if (in_array($activityTypeId, array( -- 2.25.1