From 6381d18545eee28a72dd1fb6512fb452c1e5ab17 Mon Sep 17 00:00:00 2001 From: Philipp Imhof <52650214+PhilippImhof@users.noreply.github.com> Date: Sun, 12 Nov 2023 11:38:31 +0100 Subject: [PATCH] load name of user in response history --- report.php | 3 +++ 1 file changed, 3 insertions(+) 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); }