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

User selector elements inconsistently apply fullname format to users

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE
    • Pull 3.10 Branch:
      MDL-72192-310
    • Pull 3.11 Branch:
      MDL-72192-311
    • Pull Master Branch:
    • Testing Instructions:
      Hide

      Setup

      1. Login as admin
      2. Navigate to Users > Permissions > User policies in site administration
      3. Set Alternative full name format to "firstname middlename lastname" and save changes
      4. Create a new user
        • First name: Alfred
        • Middle name: Banana
        • Surname: Cupcake

      Adding to cohort (which never displayed alternate fullname format)

      1. Create a new cohort
      2. Navigate to the Assign members page for the cohort
      3. Confirm Potential users contains alternate name of test user ("Alfred Banana Cupcake")
      4. Search Potential users for "Alfred"
      5. Confirm Potential matching users contains alternate name of test user ("Alfred Banana Cupcake")
      6. Add them to the cohort
      7. Repeat steps 3. to 5. but with the Current users list/search

      Manual course enrolment (which displayed alternate fullname format only on initial list)

      1. Create a new course
      2. Select Enrolment methods from the participants page actions menu
      3. Press Enrol users on the Manual enrolments instance
      4. Confirm Not enrolled users contains alternate name of test user ("Alfred Banana Cupcake")
      5. Search Not enrolled users for "Alfred"
      6. Confirm Matching not enrolled users contains alternate name of test user ("Alfred Banana Cupcake")
      7. Add them to the cohort
      8. Repeat steps 4. to 6. but with the Enrolled users list/search

      Automated tests

      $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="A teacher can manage manually enrolled users in their course"
      

      Show
      Setup Login as admin Navigate to Users > Permissions > User policies in site administration Set Alternative full name format to "firstname middlename lastname" and save changes Create a new user First name: Alfred Middle name: Banana Surname: Cupcake Adding to cohort (which never displayed alternate fullname format) Create a new cohort Navigate to the Assign members page for the cohort Confirm Potential users contains alternate name of test user ("Alfred Banana Cupcake") Search Potential users for "Alfred" Confirm Potential matching users contains alternate name of test user ("Alfred Banana Cupcake") Add them to the cohort Repeat steps 3. to 5. but with the Current users list/search Manual course enrolment (which displayed alternate fullname format only on initial list) Create a new course Select Enrolment methods from the participants page actions menu Press Enrol users on the Manual enrolments instance Confirm Not enrolled users contains alternate name of test user ("Alfred Banana Cupcake") Search Not enrolled users for "Alfred" Confirm Matching not enrolled users contains alternate name of test user ("Alfred Banana Cupcake") Add them to the cohort Repeat steps 4. to 6. but with the Enrolled users list/search Automated tests $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="A teacher can manage manually enrolled users in their course"

      Description

      When using the user selector element (e.g. cohort member assignment, manual user enrolment in course), there is some inconsistency with how they display the fullname of matching users

      Most don't observe the capability to view alternate name format, and some (manual user enrolment) observe this capability when initially rendering the selector list but not when populating it via AJAX search response

      Here the users name format switches after searching

        Attachments

          Activity

            People

            Assignee:
            pholden Paul Holden
            Reporter:
            pholden Paul Holden
            Peer reviewer:
            Amaia Anabitarte Amaia Anabitarte
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            Gladys Basiana Gladys Basiana
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Nov/21

                Time Tracking

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