MDL-25104, fixed answertext in mulitchoice questoin type

This commit is contained in:
Dongsheng Cai
2010-11-18 07:35:27 +00:00
parent 35eed0ca48
commit 2675ca53f4
+1 -1
View File
@@ -71,7 +71,7 @@ class question_multichoice_qtype extends default_questiontype {
$answer->id = $DB->insert_record('question_answers', $answer);
}
$answer->answer = $answerdata;
$answer->answer = $answerdata['text'];
$answer->answerformat = FORMAT_HTML;
$answer->fraction = $question->fraction[$key];
$answer->feedback = $this->import_or_save_files($question->feedback[$key],