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

Count enrolled users can count users more than once when users have been enrolled using different enrollment methods

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.1, 3.3.7, 3.4.4, 3.5.1, 3.6
    • 3.4.6, 3.5.3
    • Enrolments

    Description

      When using count_enrolled_users from lib/enrollib.php, and users may have been enrolled in a course by different methods or have several roles, the user count can differ from the actual amount of users.

      Attaching a patch that would count the distinct user ids. Optimized for PostgreSQL.

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              dvdcastro David Castro
              Daniel Neis Araujo Daniel Neis Araujo
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              CiBoT CiBoT
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Nov/18