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

Enrolled Users - Filter 'No Group' shows incorrect count

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51923-master-2

      Description

      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()
      

        Attachments

        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

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              rjnl Rajneel Totaram
              Peer reviewer:
              John Okely
              Integrator:
              Andrew Nicols
              Tester:
              Jun Pataleta
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                16/Nov/15