Skip to content

Commit

Permalink
CRM-20944 Remove call to deprecated CRM_Core_OptionGroup::getValue in…
Browse files Browse the repository at this point in the history
… ActivityLinks.php
  • Loading branch information
seamuslee001 committed Jul 22, 2017
1 parent 7d88fcc commit c613843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Activity/Form/ActivityLinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit c613843

Please sign in to comment.