Skip to content

Commit

Permalink
Re-instate the contact->find() as tests expect it
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 3, 2022
1 parent 544224b commit cf0015d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Contact/BAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,13 @@ public static function &create(&$params, $fixAddress = TRUE, $invokeHooks = TRUE
// api calls may pass in skip_greeting_processing, probably doing it later via the
// scheduled job. CRM-21551
if (empty($params['skip_greeting_processing'])) {
// This fetch has been historically been here & tests expect it as it affects
// the return array from the api. It could possibly be removed & tests updated to use 'get'
// the question is whether api
// consumers rely on it because it has worked before.
if ($contact->_query !== FALSE) {
$contact->find(TRUE);
}
self::processGreetings($contact);
}

Expand Down

0 comments on commit cf0015d

Please sign in to comment.