Merge branch 'wip-MDL-44952-master' of https://github.com/marinaglancy/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 1 Mar 2016 04:30:56 +0000 (12:30 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 1 Mar 2016 04:30:56 +0000 (12:30 +0800)
mod/feedback/item/multichoice/multichoice_form.php

index 18452dd..432a588 100644 (file)
@@ -103,6 +103,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;