From f90672bf85da473067636bd0b42e508e688cef23 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Mon, 6 Feb 2006 20:58:27 +0000 Subject: [PATCH] Added back a field I missed when reworking the sql for quiz reports - qa.uniqueid as attemptuniqueid - after skype discussion with gustav --- mod/quiz/report/overview/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php index 6c31144cd07..ca0e05baf20 100644 --- a/mod/quiz/report/overview/report.php +++ b/mod/quiz/report/overview/report.php @@ -236,7 +236,7 @@ class quiz_report extends quiz_default_report { // Construct the SQL $select = 'SELECT '.$db->Concat('u.id', '\'#\'', $db->IfNull('qa.attempt', '0')).' AS uniqueid, '. - 'qa.id AS attempt, u.id AS userid, u.firstname, u.lastname, u.picture, '. + 'qa.uniqueid as attemptuniqueid, qa.id AS attempt, u.id AS userid, u.firstname, u.lastname, u.picture, '. 'qa.sumgrades, qa.timefinish, qa.timestart, qa.timefinish - qa.timestart AS duration '; if ($course->id != SITEID) { // this is too complicated, so just do it for each of the four cases. if (!empty($currentgroup) && empty($noattempts)) {