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

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

      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.

            pholden Paul Holden
            dvdcastro David Castro
            Daniel Neis Araujo Daniel Neis Araujo
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            3 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.