Fix bug with numerical questions with multiple answers. Merged from MOODLE_17_STABLE.

This commit is contained in:
tjhunt 2006-10-17 15:56:52 +00:00
parent 4006726277
commit 026bec73b8

View file

@ -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;
}