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

Enrol users: Cannot search by username

    XMLWordPrintable

Details

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-71836-m311
    • MDL-71836-master
    • 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.

    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

        1. MDL-71836.jpg
          14 kB
          Anna Carissa Sadia

        Issue Links

          Activity

            People

              quen Sam Marshall
              quen Sam Marshall
              Katie Ransom Katie Ransom
              Andrew Lyons Andrew Lyons
              Anna Carissa Sadia Anna Carissa Sadia
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Jul/21

                Time Tracking

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