-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.9, 2.5.5, 2.6.2, STABLE backlog
-
Any
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-45323-master -
Easy
-
In grade/querylib.php function grade_get_grade_items_for_activity
When it is called with $cm without modname it gets error reading from database where modname is not set.
This is caused by the malformed SQL on line 257.
Patch https://github.com/moodle/moodle/pull/90/files
The same patch can be applied in all affected versions