From: tjhunt Date: Tue, 17 Oct 2006 15:56:52 +0000 (+0000) Subject: Fix bug with numerical questions with multiple answers. Merged from MOODLE_17_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=026bec73b8a8f5c9ace5b1a4f27941e5b2368881;p=moodle.git Fix bug with numerical questions with multiple answers. Merged from MOODLE_17_STABLE. --- diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index 7d53649a1f..7b9a0830c9 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -34,7 +34,8 @@ class question_numerical_qtype extends question_shortanswer_qtype { "FROM {$CFG->prefix}question_answers a, " . " {$CFG->prefix}question_numerical n " . "WHERE a.question = $question->id " . - "AND a.id = n.answer;")) { + " AND a.id = n.answer " . + "ORDER BY a.id ASC")) { notify('Error: Missing question answer!'); return false; }