CRM-16528 hook_civicrm_contact_get_displayname does not work. Missing an "&" in alterDisplayName inhooks.php

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.5
    • Fix Version/s: 4.6.4
    • Component/s: Core CiviCRM
    • Labels:
    • Documentation Required?:
      None

      Description

      hook.php has a missing & in the function alterDisplayName

      Is:
      public static function alterDisplayName($displayName, $contactId, $dao) {

      Should be:

      public static function alterDisplayName(&$displayName, $contactId, $dao) {

      As soon as I figure out how to do a PR I will.

        Attachments

          Activity

          [CRM-16528] hook_civicrm_contact_get_displayname does not work. Missing an "&" in alterDisplayName inhooks.php
          pratiksha added a comment -
          Rohan Ramesh Katkar added a comment -

          Tested above PR, working fine.

            People

            • Assignee:
              Rohan Ramesh Katkar
              Reporter:
              Paul Hugo

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified