From 267578ea24b235cb2dec3bb79b745b24a6475e8f Mon Sep 17 00:00:00 2001 From: pratikshad Date: Fri, 22 May 2015 10:10:02 +0530 Subject: [PATCH] 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 --- CRM/Utils/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.25.1