-
Improvement
-
Resolution: Fixed
-
Minor
-
2.2.1, 2.4.3
-
MOODLE_22_STABLE, MOODLE_24_STABLE
-
MOODLE_25_STABLE
-
wip-mdl-31969
-
-
When you go into the grader report, you will see suspended users (with the suspend icon).
I don't believe it is the intent of the report to do that per the comments in the file
(see the comment below on "//limit to users with an active enrollment")
moodle / grade / report / grader / lib.php |
//limit to users with an active enrollment
|
list($enrolledsql, $enrolledparams) = get_enrolled_sql($this->context);
|
line 339,340 you'll see a comment that it wants to limit users with an active enrollment.
Yet to do that, you would want something more like -
list($enrolledsql, $enrolledparams) = get_enrolled_sql($this->context,'',0,1);
|
get_enrolled_sql is in lib/accesslib.php
function get_enrolled_sql(context $context, $withcapability = '', $groupid = 0, $onlyactive = false) {
|
-
- note onlyactive is set to false by default.
Replication steps:
- in a course with users,
- go into Course administration -> users -> enrolled users
- click on the edit icon on the enrollment method column of one user and change user to suspended.
- now go into the gradebook, you will see the user, but there will be the pause/suspend icon.