-
Bug
-
Resolution: Fixed
-
Minor
-
3.10.2, 3.11, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_311_STABLE
-
MDL-71126-master -
When manually grading a quiz, the "Questions per page" can be set to 0 and produces a coding error. This is saved as a user preference with the key "quiz_grading_pagesize" and brakes grading for this user for the whole site.
The input for this form does not seem to be validated.
This might be related to MDL-3953.
Steps to reproduce:
- Create a course.
- Create a quiz activity.
- Add an "Essay" question.
- Login as a student, and submit the quiz.
- Login as teacher, go to Manual grading screen.
- Press "grade" link to make a grade.
- Set 0 in "Questions per page" in "Options", and press "Change options".
- The error "Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays" is shown, and the user cannot manual grade any more.