Skip to content
Snippets Groups Projects
Commit 9357a775 authored by Deepak Srivastava's avatar Deepak Srivastava
Browse files

CRM-12289

parent 07638b4c
No related branches found
No related tags found
No related merge requests found
......@@ -1516,9 +1516,10 @@ LEFT JOIN civicrm_case_activity ON ( civicrm_case_activity.activity_id = tbl.a
$tokenHtml = CRM_Utils_Token::replaceHookTokens($tokenHtml, $values, $categories, TRUE, $escapeSmarty);
// Only send if the phone is of type mobile
if($values['phone_type_id'] == 2) {
$phoneTypes = CRM_Core_OptionGroup::values('phone_type', TRUE, FALSE, FALSE, NULL, 'name');
if ($values['phone_type_id'] == CRM_Utils_Array::value('Mobile', $phoneTypes)) {
$smsParams['To'] = $values['phone'];
}else{
} else{
$smsParams['To'] = '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment