Quiz report with restricted groups suggested improvement

Re: Quiz report with restricted groups suggested improvement

by Tim Hunt -
Number of replies: 1
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
These are good points.

Please create trackers issues for them (if there are not ones already, which is probably the case). https://docs.moodle.org/dev/Tracker_introduction
In reply to Tim Hunt

Re: Quiz report with restricted groups suggested improvement

by Beth Wojcik -
Tim, any help with this debugging?

Debug info: Field 'userid' doesn't have a default value
INSERT INTO mdl_quiz_group_attempts (attemptid,quizid,timemodified,groupingid,groupid) VALUES(?,?,?,?,?)
[array (
0 => '42642',
1 => '2809',
2 => 1630430556,
3 => 1630430556,
4 => '218',
)]
Error code: dmlwriteexception
Stack trace:
line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1331 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1377 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 162 of /mod/quiz/report/group/locallib.php: call to mysqli_native_moodle_database->insert_record()
line 200 of /mod/quiz/report/group/locallib.php: call to create_groupattempt_from_attempt()
line 137 of /mod/quiz/report/group/report.php: call to dispatch_grade()
line 97 of /mod/quiz/report.php: call to quiz_group_report->display()