Affects Version/s: 2.6.3, 2.7
Open an assignment
Go to the grading table
Enable quick grading (bleh)
Change the filter so no users are shown in the table (e.g. submitted when there are no submissions)
Click "Save all quick grading changes"
Verify the next page just gives a (semi) useful message and no fatal error
Affected Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
Pull from Repository:
Pull Master Branch:
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.