From c6138439ed5b3f4fd460605fdd0e23b282766c5d Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 22 Jul 2017 22:18:55 +0000 Subject: [PATCH] CRM-20944 Remove call to deprecated CRM_Core_OptionGroup::getValue in ActivityLinks.php --- CRM/Activity/Form/ActivityLinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Activity/Form/ActivityLinks.php b/CRM/Activity/Form/ActivityLinks.php index 384c84be0c31..6508adc08f03 100644 --- a/CRM/Activity/Form/ActivityLinks.php +++ b/CRM/Activity/Form/ActivityLinks.php @@ -77,7 +77,7 @@ public static function commonBuildQuickForm($self) { continue; } // Check for existence of a mobile phone and ! do not SMS privacy setting - $mobileTypeID = CRM_Core_OptionGroup::getValue('phone_type', 'Mobile', 'name'); + $mobileTypeID = CRM_Core_PseudoConstant::getkey('CRM_Core_BAO_Phone', 'phone_type_id', 'Mobile'); list($name, $phone, $doNotSMS) = CRM_Contact_BAO_Contact_Location::getPhoneDetails($contactId, $mobileTypeID); if (!$doNotSMS && $phone) { $url = 'civicrm/activity/sms/add';