]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10841 - show all feedback to multiple choice questions on the review page.
authortjhunt <tjhunt>
Wed, 15 Aug 2007 16:22:54 +0000 (16:22 +0000)
committertjhunt <tjhunt>
Wed, 15 Aug 2007 16:22:54 +0000 (16:22 +0000)
question/type/multichoice/questiontype.php

index 270592f8ced45758c75f5e1edef988f72a3749fd..4af601ffe51542fabcf39f643c79db6c32a3c4b4 100644 (file)
@@ -317,7 +317,7 @@ class question_multichoice_qtype extends default_questiontype {
                     format_text($answer->answer, FORMAT_MOODLE, $formatoptions, $cmoptions->course);
 
             // Print feedback if feedback is on
-            if (($options->feedback || $options->correct_responses) && $checked) {
+            if (($options->feedback || $options->correct_responses) && ($checked || $options->readonly)) {
                 $a->feedback = format_text($answer->feedback, true, $formatoptions, $cmoptions->course);
             } else {
                 $a->feedback = '';