diff --git a/report.php b/report.php index 8c642cc..b609e20 100644 --- a/report.php +++ b/report.php @@ -334,6 +334,9 @@ protected function quiz_report_get_student_attempt($attemptid, $userid) { $attemptobj->get_question_attempt($originalslot)->get_max_mark()); } $quba = question_engine::load_questions_usage_by_activity($attemptobj->get_uniqueid()); + if (method_exists($quba, 'preload_all_step_users')) { + $quba->preload_all_step_users(); + } $string .= $quba->render_question($slot, $displayoptions, $number); }