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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6.7, 3.7.3
    • 3.5, 3.5.1, 3.5.5, 3.6.2, 3.7.2
    • Enrolments
    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • Hide

      Use the alternative manual enrolment interface.

      Show
      Use the alternative manual enrolment interface.
    • 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

      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.

        1. part1.png
          49 kB
          Jari Vilkman
        2. part2.PNG
          39 kB
          Jari Vilkman
        3. part3.png
          115 kB
          Jari Vilkman
        4. MDL-63293.png
          50 kB
          Jennifer Bauzon

            pholden Paul Holden
            urpokarhu Jari Vilkman
            Peter Dias Peter Dias
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Jennifer Bauzon Jennifer Bauzon
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 12 minutes
                1h 12m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.