From a656e0de488d2e29d8fbf533d097755e6bf72f4d Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 8 Jan 2008 18:29:20 +0000 Subject: [PATCH] =?utf8?q?MDL-12785=20-=20Partially=20correct=20tick=20ico?= =?utf8?q?n=20not=20displayed=20for=20MULTICHOICE,=20single=20answer=20que?= =?utf8?q?stions.=20Fix=20thanks=20to=20Joseph=20R=E9zeau.=20Merged=20from?= =?utf8?q?=20MOODLE=5F18=5FSTABLE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- question/type/multichoice/questiontype.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/question/type/multichoice/questiontype.php b/question/type/multichoice/questiontype.php index 92f5dfbc15..0c1207d1d5 100644 --- a/question/type/multichoice/questiontype.php +++ b/question/type/multichoice/questiontype.php @@ -309,7 +309,11 @@ class question_multichoice_qtype extends default_questiontype { $a->class = question_get_feedback_class(1); } if (($options->feedback && $chosen) || $options->correct_responses) { - $a->feedbackimg = question_get_feedback_image($answer->fraction > 0 ? 1 : 0, $chosen && $options->feedback); + if ($type == ' type="checkbox" ') { + $a->feedbackimg = question_get_feedback_image($answer->fraction > 0 ? 1 : 0, $chosen && $options->feedback); + } else { + $a->feedbackimg = question_get_feedback_image($answer->fraction, $chosen && $options->feedback); + } } // Print the answer text -- 2.39.5