]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5790: Answer order for MC qtype not specified. Fix. Thanks to Peter Bulmer....
authortjhunt <tjhunt>
Mon, 12 Jun 2006 11:05:39 +0000 (11:05 +0000)
committertjhunt <tjhunt>
Mon, 12 Jun 2006 11:05:39 +0000 (11:05 +0000)
question/type/multichoice/questiontype.php

index e817d05d1d161769b800bb8da2d8939bf5560a15..cc3bc51a76e635da964299e2070471682469fa4f 100644 (file)
@@ -26,7 +26,7 @@ class question_multichoice_qtype extends default_questiontype {
             return false;
         }
 
-        if (!$question->options->answers = get_records_select('question_answers', 'id IN ('.$question->options->answers.')')) {
+        if (!$question->options->answers = get_records_select('question_answers', 'id IN ('.$question->options->answers.')', 'id')) {
            notify('Error: Missing question answers for multichoice question'.$question->id.'!');
            return false;
         }