Skip to content
Snippets Groups Projects
Unverified Commit 38e4a7e4 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #21794 from eileenmcnaughton/sms

Remove another call to getTokenDetails
parents 6a7008b1 d96f9678
Branches
Tags
No related merge requests found
......@@ -156,19 +156,10 @@ class CRM_Contact_Form_Task_SMSCommon {
}
if (is_array($form->_contactIds) && !empty($form->_contactIds) && $toSetDefault) {
$returnProperties = [
'sort_name' => 1,
'phone' => 1,
'do_not_sms' => 1,
'is_deceased' => 1,
'display_name' => 1,
];
list($form->_contactDetails) = CRM_Utils_Token::getTokenDetails($form->_contactIds,
$returnProperties,
FALSE,
FALSE
);
$form->_contactDetails = civicrm_api3('Contact', 'get', [
'id' => ['IN' => $form->_contactIds],
'return' => ['sort_name', 'phone', 'do_not_sms', 'is_deceased', 'display_name'],
])['values'];
// make a copy of all contact details
$form->_allContactDetails = $form->_contactDetails;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment