-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.3, 3.8.3
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MDL-67294-master -
-
3.9 release work board
To reproduce:
- Create an assignment which accepts file submissions
- Go to the assignment
- View all submissions
- Open the grader pane for one person by clicking 'Grade'
- Go back to the view all submissions page
- Select one or more assignments without any submission.
- Go to the bulk actions menu.
- Select "Remove submission" then press "Go"
- The following error is then thrown:
Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified.
More information about this error
×Debug info:
Error code: codingerror
×Stack trace:
line 1159 of /lib/dml/pgsql_native_moodle_database.php: coding_exception thrown
line 1216 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->update_record_raw()
line 327 of /mod/assign/submission/file/locallib.php: call to pgsql_native_moodle_database->update_record()
line 7960 of /mod/assign/locallib.php: call to assign_submission_file->remove()
line 8028 of /mod/assign/locallib.php: call to assign->remove_submission()
line 4935 of /mod/assign/locallib.php: call to assign->process_remove_submission()
line 533 of /mod/assign/locallib.php: call to assign->process_grading_batch_operation()
line 55 of /mod/assign/view.php: call to assign->view()
×Output buffer: <br /> <b>Warning</b>: Creating default object from empty value in <b>/home/jun/moodles/stable_master/moodle/mod/assign/submission/file/locallib.php</b> on line <b>326</b><br />
- Discovered while testing
-
MDL-65956 A teacher trying to remove a submission without having the relevant capability encounters an error
- Closed
- is a regression caused by
-
MDL-65886 Assignment file submission: when removing a submission, numfiles in mdl_assignsubmission_file should be reset to 0
- Closed
- is duplicated by
-
MDL-69033 Assignment: Error deleting reopened file submission
- Closed