MDL-61444 question: hardFreeze tags element if no caps
authorSimey Lameze <simey@moodle.com>
Thu, 22 Feb 2018 23:44:57 +0000 (07:44 +0800)
committerSimey Lameze <simey@moodle.com>
Thu, 22 Feb 2018 23:44:57 +0000 (07:44 +0800)
question/type/edit_question_form.php

index dd3be4b..48f35da 100644 (file)
@@ -207,7 +207,7 @@ abstract class question_edit_form extends question_wizard_form {
                 array('itemtype' => 'question', 'component' => 'core_question'));
 
             if (!question_has_capability_on($this->question, 'tag')) {
                 array('itemtype' => 'question', 'component' => 'core_question'));
 
             if (!question_has_capability_on($this->question, 'tag')) {
-                $mform->freeze('tags');
+                $mform->hardFreeze('tags');
             }
         }
 
             }
         }