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

Enrol users: Cannot search by username

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a new user whose name is not their username, for example:

        First name: Neil
        Last name: Collins
        Username: colln1
        

      2. Set the showuseridentity option to include the username field. (This can be set under admin / Users / Permissions / User policies.)
      3. Open a coures and navigate to the Participants page
      4. Click "Enrol users"
      5. Search for the username "colln1"
        1. EXPECTED: The result popup should show the user.
      Show
      Create a new user whose name is not their username, for example: First name: Neil Last name: Collins Username: colln1 Set the showuseridentity option to include the username field. (This can be set under admin / Users / Permissions / User policies.) Open a coures and navigate to the Participants page Click "Enrol users" Search for the username " colln1 " EXPECTED: The result popup should show the user.
    • Affected Branches:
      MOODLE_311_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull 3.11 Branch:
      MDL-71836-m311
    • Pull Master Branch:
      MDL-71836-master

      Description

      This is a regression caused by MDL-45242.

      If you have the 'username' field enabled for the showuseridentity option, you can see that field on screens such as the participants list. But searching for that field does not work, i.e. if you search for something in the username of a potential user who could be enrolled, you will get no results. (Searching for all other selectable fields does work.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Peer reviewer:
              Katie Ransom Katie Ransom
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jul/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h