From 026bec73b8a8f5c9ace5b1a4f27941e5b2368881 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 17 Oct 2006 15:56:52 +0000 Subject: [PATCH] Fix bug with numerical questions with multiple answers. Merged from MOODLE_17_STABLE. --- question/type/numerical/questiontype.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5