]> git.mjollnir.org Git - moodle.git/commitdiff
Bug fix: On building attempts after the first one, display question images
authormoodler <moodler>
Mon, 18 Aug 2003 07:45:03 +0000 (07:45 +0000)
committermoodler <moodler>
Mon, 18 Aug 2003 07:45:03 +0000 (07:45 +0000)
mod/quiz/lib.php

index 27628e265a0f0d16e434468670ee8361b97ad746..346971c46f8950f6b01542a15babda7ca0e8e0a5 100644 (file)
@@ -344,7 +344,8 @@ function quiz_get_attempt_responses($attempt) {
 // for regrading using quiz_grade_attempt_results()
     global $CFG;
    
-    if (!$responses = get_records_sql("SELECT q.id, q.qtype, q.category, q.questiontext, q.defaultgrade, r.answer 
+    if (!$responses = get_records_sql("SELECT q.id, q.qtype, q.category, q.questiontext, 
+                                              q.defaultgrade, q.image, r.answer 
                                         FROM {$CFG->prefix}quiz_responses r, 
                                              {$CFG->prefix}quiz_questions q
                                        WHERE r.attempt = '$attempt->id'