-
Bug
-
Resolution: Fixed
-
Critical
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-45145_master -
If there are certain attempts for quiz and if teacher tries to select them and delete it deletes those attempts but gives an intermediate error.
1.) Create a quiz with some questions and let some students attempt it.
2.) Login as teacher. Go to reports and try to delete attempts.
3.) Error will be shown although attempts get deleted.
Error: Debug info: SELECT id,course FROM
{course_modules} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
Stack trace:
line 1451 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 7074 of /lib/accesslib.php: call to moodle_database->get_record()
line 382 of /mod/quiz/locallib.php: call to context_module::instance()
line 321 of /mod/quiz/report/attemptsreport.php: call to quiz_delete_attempt()
line 290 of /mod/quiz/report/attemptsreport.php: call to quiz_attempts_report->delete_selected_attempts()
line 266 of /mod/quiz/report/overview/report.php: call to quiz_attempts_report->process_actions()
line 82 of /mod/quiz/report/overview/report.php: call to quiz_overview_report->process_actions()
line 96 of /mod/quiz/report.php: call to quiz_overview_report->display()
Output buffer: Notice: Undefined property: stdClass::$cmid in /var/www/vhosts/qa.moodle.net/html/mod/quiz/locallib.php on line 382
- is a regression caused by
-
MDL-40063 Replace add_to_log with an event trigger - mod_quiz
-
- Closed
-
- is duplicated by
-
MDL-45199 Editing quiz throws an error
-
- Closed
-
- will help resolve
-
MDLQA-6904 CLONE - When a time and date are set, the student will be able to submit an incomplete attempt when time expires.
-
- Passed
-