Affects Version/s: 2.4.5, 2.5.1
Affected Branches:MOODLE_24_STABLE, MOODLE_25_STABLE
Fixed Branches:MOODLE_24_STABLE, MOODLE_25_STABLE
Pull from Repository:
Create an assignment (24 or 25 only) in a course with at least one student.
As a Teacher (or admin) go directly to the grading page for the assignment and choose "Prevent submission changes" from the menu for the first student.
Verify you do not receive an error.
Apologies if this issue has already been reported. I searched and could not find it.
PHP catchable fatal error gets thrown when the following steps are followed:
Create new assignment.
Set 'Require students click submit button' to yes.
Go to assignment, click 'View/grade all submissions'.
In Edit the column for a student who has not yet made a submission, choose the action 'Prevent submission changes'. Causes error.
Should be an alert that there is no submission yet or something a little more helpful to end user.
The error is:
Argument 1 passed to assign_submission_plugin::lock() must be an instance of stdClass, boolean given, called in [dirroot]/mod/assign/locallib.php on line 4464 and defined