Details
-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.1, 3.3.7, 3.4.4, 3.5.1, 3.6
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
- Run vendor/bin/phpunit enrol/tests/enrollib_test.php
- Confirm testcase passes
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
- has been marked as being related by
-
MDL-43130 Users assigned context role via multiple components are counted multiple times
-
- Closed
-