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

User identity fields not searchable in Participants screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3, 3.5
    • Fix Version/s: 3.6
    • Component/s: User management
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to "Site administration / Users / Permissions / User policies"
      2. Enable the following fields in the "Show user identity" setting:
        • Mobile phone
        • Department
      3. Save the changes
      4. Create some users with the following details:
        Username Name Email Mobile Department Institution Country
        s1 John Doe s1@example.com 0400111222 Sciences Moodle University Australia
        s2 Jane Doe s2@example.com 09998887777 Sciences Moodle University Philippines
        s3 John Smith s3@example.com 0433444555 Economics Awesome Colleges Australia
      5. Enrol these users on the same course.
      A user with the capability to view user identities
      1. Still as an admin, go to the Participants page of the course.
      2. On the filter, enter "04"
      3. Confirm that you only see s1 and s3 on the results.
      4. Clear the filter and enter "Sciences"
      5. Confirm that you only see s1 and s2 on the results.
      6. Clear the filter and enter "Moodle"
      7. Confirm that nothing comes up.
      8. Clear the filter and enter "Australia"
      9. Confirm that nothing comes up.
      A user without the capability to view user identities
      1. Log in as s1.
      2. Go to the Participants page.
      3. On the filter, enter "04"
      4. Confirm that you only see yourself on the results.
      5. Clear the filter and enter "Sciences"
      6. Confirm that you only see yourself on the results.
      7. Clear the filter and enter "Moodle"
      8. Confirm that nothing comes up.
      9. Clear the filter and enter "Australia"
      10. Confirm that nothing comes up.
      Show
      Go to " Site administration / Users / Permissions / User policies " Enable the following fields in the " Show user identity " setting: Mobile phone Department Save the changes Create some users with the following details: Username Name Email Mobile Department Institution Country s1 John Doe s1@example.com 0400111222 Sciences Moodle University Australia s2 Jane Doe s2@example.com 09998887777 Sciences Moodle University Philippines s3 John Smith s3@example.com 0433444555 Economics Awesome Colleges Australia Enrol these users on the same course. A user with the capability to view user identities Still as an admin, go to the Participants page of the course. On the filter, enter " 04 " Confirm that you only see s1 and s3 on the results. Clear the filter and enter " Sciences " Confirm that you only see s1 and s2 on the results. Clear the filter and enter " Moodle " Confirm that nothing comes up. Clear the filter and enter " Australia " Confirm that nothing comes up. A user without the capability to view user identities Log in as s1. Go to the Participants page. On the filter, enter " 04 " Confirm that you only see yourself on the results. Clear the filter and enter " Sciences " Confirm that you only see yourself on the results. Clear the filter and enter " Moodle " Confirm that nothing comes up. Clear the filter and enter " Australia " Confirm that nothing comes up.
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull 3.5 Branch:
      wip-MDL-62520_MOODLE_35_STABLE
    • Pull Master Branch:
      wip-MDL-62520_MASTER

      Description

      The free text search on the Participants screen does not search against any of the configurable user identity fields (apart from idnumber and email). Once enabled these fields appear on the participants table and so it is confusing that the search does not match the values shown.

      1. Enable showuseridentity fields as system admin i.e. Country
      2. Ensure users have some values set in those fields on their profile
      3. View Participants screen within any course
      4. Ensure some test users are enrolled
      5. Use the Search keyword to search for values you can see shown in the table for the identity fields e.g. search for a country
      6. Expected: You see search results where users match the text value entered
      7. Actual: Users are not shown

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m