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

Cannot add participants to course if over 100 people have same lastname

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5, 3.5.1, 3.5.5, 3.6.2, 3.7.2
    • Fix Version/s: 3.6.7, 3.7.3
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Create 4 new users:
        1. Bob Smith
        2. Jane Smith
        3. Jim Smith
        4. Jim Brown
      3. Navigate to "Users > Permissions > User policies" in site administration
      4. Set "Maximum users per page" to 2
      5. Create a new course
      6. Visit course participants page
      7. Press Enrol users button
      8. Search for "Smith" in the "Select users" field
      9. Confirm you see the text "Too many users (>2) to show"
      10. Search for "Jim"
      11. Confirm both "Jim Smith" & "Jim Brown" are listed in results
      Show
      Log in as admin Create 4 new users: Bob Smith Jane Smith Jim Smith Jim Brown Navigate to " Users > Permissions > User policies " in site administration Set " Maximum users per page " to 2 Create a new course Visit course participants page Press Enrol users button Search for "Smith" in the "Select users" field Confirm you see the text "Too many users (>2) to show" Search for "Jim" Confirm both "Jim Smith" & "Jim Brown" are listed in results
    • Workaround:
      Hide

      Use the alternative manual enrolment interface.

      Show
      Use the alternative manual enrolment interface.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:

      Description

      Hello,

      On the new course Participant-page in Moodle 3.5;

      https://moodle.moodle/user/index.php?id=XXXX

      when you use "enrol users"-button and type a part of a participant lastname to "select users" search-field and wait, you will get an en error "too many users (>100) to show" if you have more then 100 user accounts in Moodle that has the same lastname.

      But on the same Moodle-site if you navigate to Participants -> Users -> Enrolled users;

      https://moodle.moodle/enrol/manual/manage.php?enrolid=XXXX

      and type the same part of the lastname to the search pane on the right, you can see all the matching participants available to choose from in the right pane.

      Why doesn't the new Participant-page use the same logic and show us all the matching names?

      This leads to an situtation if you have more than 100 people in Moodle with the same last name that you cannot add any of them to the course at all with this method since it allways shows the error even if you type in the full last name.

      I think Ajax user selector should use the same setting $CFG->maxusersperpage as the traditional manual enrolment form, please see:

      https://tracker.moodle.org/browse/MDL-60874

      Also Moodle system setting "Maximum users per page | maxusersperpage" doesn't affect the new course Participant-page search-field listing, it only affects the "manual enrolments" page.

        Attachments

        1. part1.png
          part1.png
          49 kB
        2. part2.PNG
          part2.PNG
          39 kB
        3. part3.png
          part3.png
          115 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Fix Release Date:
                  11/Nov/19

                  Time Tracking

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