-
Bug
-
Resolution: Fixed
-
Minor
-
2.9.3, 3.0.1
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-52573-master -
The grader report checks a couple of capabilities that may or may not exist, depending on your Moodle installation:
- gradereport/singleview:view
- gradereport/user:view (or equivalent from another plugin that can be used as a user profile report)
There is nothing to stop an administrator uninstalling the singleview or user plugins, so this can cause debugging messages to be output, e.g.:
Capability "gradereport/singleview:view" was not found! This has to be fixed in code.
|
|
line 387 of \lib\accesslib.php: call to debugging()
|
line 539 of \lib\accesslib.php: call to has_capability()
|
line 594 of \grade\report\grader\lib.php: call to has_all_capabilities()
|
line 1181 of \grade\report\grader\lib.php: call to grade_report_grader->get_left_rows()
|
line 179 of \grade\report\grader\index.php: call to grade_report_grader->get_grade_table()
|
It would be a good idea if the grader report were to make sure these capabilities exist before checking them.
To reproduce on a fresh install of Moodle,
- uninstall the user and singleview plugins
- switch debugging on
- open the grader report and confirm that you see debugging messages as above
- has to be done before
-
MDL-52575 Allow no user profile grade report to be selected
-
- Closed
-
- is a regression caused by
-
MDL-49826 Single view ignores capability moodle/grade:edit and always requires moodle/grade:manage
-
- Closed
-
-
MDL-18229 Add grade item and student grades quick edit feature to the grader report
-
- Closed
-
- will be (partly) resolved by
-
MDL-52678 An API to allow grade reports to insert links into row/columns in the grader report
-
- Closed
-