From 463d31a8716136d42cd2ddba37dfa2fc95f49b97 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 1 Mar 2016 12:21:00 +0800 Subject: [PATCH] MDL-44952 mod_feedback: set value for hidenoselect if disabled --- mod/feedback/item/multichoice/multichoice_form.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/feedback/item/multichoice/multichoice_form.php b/mod/feedback/item/multichoice/multichoice_form.php index 3947171672e..7e8b1dc25b5 100644 --- a/mod/feedback/item/multichoice/multichoice_form.php +++ b/mod/feedback/item/multichoice/multichoice_form.php @@ -105,6 +105,9 @@ class feedback_multichoice_form extends feedback_item_form { if (isset($item->horizontal) AND $item->horizontal == 1 AND $subtype != 'd') { $presentation .= FEEDBACK_MULTICHOICE_ADJUST_SEP.'1'; } + if (!isset($item->hidenoselect)) { + $item->hidenoselect = 1; + } $item->presentation = $subtype.FEEDBACK_MULTICHOICE_TYPE_SEP.$presentation; return $item;