Permalink
Browse files

Bug fix: On building attempts after the first one, display question i…

…mages
  • Loading branch information...
moodler
moodler committed Aug 18, 2003
1 parent ce9aeca commit 5ca03851aea6fb8f8398a1b8fb69a6475d6ed20f
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/quiz/lib.php
View
@@ -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'

0 comments on commit 5ca0385

Please sign in to comment.