MDL-64557 category: switch disabledIf to hideIf on delete form
authorDavo Smith <davo.smith@synergy-learning.com>
Mon, 14 Jan 2019 10:26:30 +0000 (10:26 +0000)
committerDavo Smith <davo.smith@synergy-learning.com>
Tue, 12 Feb 2019 10:18:04 +0000 (10:18 +0000)
course/classes/deletecategory_form.php

index 89fc598..b75f19f 100644 (file)
@@ -104,7 +104,7 @@ class core_course_deletecategory_form extends moodleform {
             if (in_array($this->coursecat->parent, $displaylist)) {
                 $mform->setDefault('newparent', $this->coursecat->parent);
             }
-            $mform->disabledIf('newparent', 'fulldelete', 'eq', '1');
+            $mform->hideIf('newparent', 'fulldelete', 'eq', '1');
         }
 
         $mform->addElement('hidden', 'categoryid', $this->coursecat->id);