-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.3, 2.7
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-45933-master -
In a course with no students, clicking "Save all quick grading changes" for an assignment results in a coding error:
"Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays"
Steps to reproduce:
- Create a course but do not enroll any students in the course.
- Create an assignment.
- Open assignment.
- Click View/Grade All Submissions.
- Make sure quick grading is on and note that "Save all quick grading changes" button displays.
- Click "Save all quick grading changes" button.
Expected result: Either the save changes button shouldn't display at all, or if it does and someone clicks it, a friendly message should be received to the effect of "There are no submissions to save."
Actual result: Coding error.