mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fix bug with numerical questions with multiple answers. Merged from MOODLE_17_STABLE.
This commit is contained in:
parent
4006726277
commit
026bec73b8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue