]> git.mjollnir.org Git - moodle.git/commitdiff
quiz editing: MDL-17455 fix non-unique first column in get records. Thanks Olli for...
authortjhunt <tjhunt>
Thu, 12 Feb 2009 05:04:19 +0000 (05:04 +0000)
committertjhunt <tjhunt>
Thu, 12 Feb 2009 05:04:19 +0000 (05:04 +0000)
mod/quiz/editlib.php

index adf449099014d127e89f31e75de505876a02438f..174651d73e25a6f4d68167436563d14dfc634c46 100644 (file)
@@ -748,7 +748,7 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool
             $questionidstoshow[] = $a->id;
         }
         $questionstoshow = $DB->get_records_list('question', 'id', $questionidstoshow,
-                '', 'qtype,name,questiontext,questiontextformat');
+                '', 'id,qtype,name,questiontext,questiontextformat');
 
         // list them,
         echo '<ul>';