From: pratikshad Date: Fri, 22 May 2015 04:40:02 +0000 (+0530) Subject: CRM-16528 Fixed-hook_civicrm_contact_get_displayname does not work. Missing an "... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=267578ea24b235cb2dec3bb79b745b24a6475e8f;p=civicrm-core.git CRM-16528 Fixed-hook_civicrm_contact_get_displayname does not work. Missing an "&" in alterDisplayName inhooks.php ---------------------------------------- * CRM-16528: hook_civicrm_contact_get_displayname does not work. Missing an "&" in alterDisplayName inhooks.php https://issues.civicrm.org/jira/browse/CRM-16528 --- diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 915f830943..46fcc9258e 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -1839,7 +1839,7 @@ abstract class CRM_Utils_Hook { * * @return mixed */ - public static function alterDisplayName($displayName, $contactId, $dao) { + public static function alterDisplayName(&$displayName, $contactId, $dao) { return self::singleton()->invoke(3, $displayName, $contactId, $dao, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_contact_get_displayname'