Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67672

As soon as fullnamedisplay and alternativefullnameformat differ, names in profile title and user menu differ

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. As admin – with firstname "Admin" and lastname "User", set fullnamedisplay (in admin/settings.php?section=userpolicies) to 'firstname lastname' (or in the example below 'language' which corresponds to the same in english)
        and alternativefullnameformat to 'lastname firstname'
      2. Save and verify in the usermenu it says "Admin User" and not "User Admin"
      3. Go to Users > Accounts > Browse list of users in site administration and log in as another user.
      4. Verify the usermenu says
        "Admin User
        You are logged in as <firstname> <lastname>".
      Show
      As admin – with firstname "Admin" and lastname "User", set fullnamedisplay (in admin/settings.php?section=userpolicies) to 'firstname lastname' (or in the example below 'language' which corresponds to the same in english) and alternativefullnameformat to 'lastname firstname' Save and verify in the usermenu it says "Admin User" and not "User Admin" Go to Users > Accounts > Browse list of users in site administration and log in as another user. Verify the usermenu says "Admin User You are logged in as <firstname> <lastname>".
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull 3.7 Branch:
    • Pull 3.8 Branch:
    • Pull Master Branch:
      MDL-67672-master

      Description

      If you set for example

      fullnamedisplay : firstname lastname (or in the example below 'language' which corresponds to the same in english)
      alternativefullnameformat : lastname firstname

      (in admin/settings.php?section=userpolicies)

      then there's an inconsistency in the UI which is hard to explain to users.

      Why should the user menu name not be fullnamedisplay as well ('Admin' being set as firstname and 'User' being set as lastname in the screenshot below)?

       

      (fullname() is called with parameter true in https://github.com/moodle/moodle/blob/master/user/lib.php#L856)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lucaboesch Luca Bösch
              Reporter:
              lucaboesch Luca Bösch
              Peer reviewer:
              Neill Magill
              Integrator:
              Jake Dallimore
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 10 minutes
                  4h 10m