From 8b1e050bd02214ca9e3a2f0bac2369ae5eb0fd0a Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 15 Nov 2010 17:17:48 +0000 Subject: [PATCH] qtype multichoice MDL-25208 Saving questions was broken. --- question/type/multichoice/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/multichoice/questiontype.php b/question/type/multichoice/questiontype.php index bb75bf58e55..3187e60f409 100644 --- a/question/type/multichoice/questiontype.php +++ b/question/type/multichoice/questiontype.php @@ -72,7 +72,7 @@ class question_multichoice_qtype extends default_questiontype { } $answer->answer = $answerdata; - $answer->answer = FORMAT_HTML; + $answer->answerformat = FORMAT_HTML; $answer->fraction = $question->fraction[$key]; $answer->feedback = $this->import_or_save_files($question->feedback[$key], $context, 'question', 'answerfeedback', $answer->id);