Permalink
Browse files

Merge branch 'MDL-30689' of git://github.com/timhunt/moodle into MOOD…

…LE_20_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Dec 12, 2011
2 parents b11d9dc + da1bee2 commit 2a6811bb9db0cecab98e6333b84bf862769b980a
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/questiontype.php
@@ -488,7 +488,7 @@ function get_question_options(&$question) {
$question->options->answers = $DB->get_records_sql("
SELECT qa.*, qax." . implode(', qax.', $extra_answer_fields) . "
FROM {question_answers} qa, {$answer_extension_table} qax
- WHERE qa.questionid = ? AND qax.answerid = qa.id", array($question->id));
+ WHERE qa.question = ? AND qax.answerid = qa.id", array($question->id));
if (!$question->options->answers) {
echo $OUTPUT->notification("Failed to load question answers from the table $answer_extension_table for questionid " .
$question->id);

0 comments on commit 2a6811b

Please sign in to comment.