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

Enrolled Users - Filter 'No Group' shows incorrect count

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0
    • 3.0
    • Enrolments
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • MDL-51923-master-2
    • Hide
      1. Create a course or take an existing course
      2. Enrol some students (at least 3)
      3. Create a group and give a membership to this group to one student
      4. Be sure that at least 2 students don't belong to any group
      5. Login with one student who was not in a group
      6. Log out and log in as a teacher
      7. Go to Courses ► Users ► Enrolled users and apply filter 'No group'
      8. Make sure that the number displayed is the same as the number of users shown.
      Show
      Create a course or take an existing course Enrol some students (at least 3) Create a group and give a membership to this group to one student Be sure that at least 2 students don't belong to any group Login with one student who was not in a group Log out and log in as a teacher Go to Courses ► Users ► Enrolled users and apply filter 'No group' Make sure that the number displayed is the same as the number of users shown.

      The 'No group' filter in the Enrolled users page does not give the correct count of the users.
      MDL-51341 does show the correct list of filtered users but the count of the users is incorrect.

      It seems that the SQL in this function in enrol/locallib.php needs to be updated

      get_total_users()
      

      similar to

      get_users()
      

        1. enrol_all.png
          enrol_all.png
          103 kB
        2. enrol_nogroup_fix.png
          enrol_nogroup_fix.png
          88 kB
        3. enrol_nogroup.png
          enrol_nogroup.png
          88 kB

            moodle.com Moodle HQ
            rjnl Rajneel Totaram
            John Okely John Okely
            Andrew Lyons Andrew Lyons
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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