The goal is to make the tokenValues hook uncalled outside the
token processor & hence redundant. We were trying to do that in 5.43
but this call is not using the results anyway so I guess
putting in master is immaterial to that goal
}
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;