Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. 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

            People

            • Assignee:
              rohan1990 Rohan Ramesh Katkar
              Reporter:
              Paul-Tahoe Paul Hugo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              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