-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
2.7.9, 2.8.7, 3.0
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_30_STABLE
-
MDL-51329_master -
-
When editing is turned on as well as admin setting grade_report_enableajax and admin setting grade_overridecat is turned off, line 612 of grade/report/grader/module.js will cause an uncaught JS error that stops all JS on the page.
612 this.grade.on('blur', this.submit, this);
I have found that this is occurring because this.grade is targeting a null node:
598 this.grade = this.report.Y.one('#grade_'userid'_'+itemid);
If grade_overridecat is set to "off", then the itemid is targeting a category grade input that does not exist. Therefore, an error is thrown, JS stops, and features using JS (such as floating headers) do not function.
If AJAX or editing is turned off, the JS functions containing these operations are not called.
- duplicates
-
MDL-36606 AJAX Grader report doesn't handle cells without an editable grade
-
- Closed
-