CRM-16528 Fixed-hook_civicrm_contact_get_displayname does not work. Missing an "...
authorpratikshad <pratiksha.dubey@webaccess.co.in>
Fri, 22 May 2015 04:40:02 +0000 (10:10 +0530)
committerpratikshad <pratiksha.dubey@webaccess.co.in>
Fri, 22 May 2015 04:40:02 +0000 (10:10 +0530)
----------------------------------------
* 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

index 915f8309431192acfcdb73fedf938ff603944b51..46fcc9258e5b92011be306c2a3a0ec64b8431670 100644 (file)
@@ -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'