MDL-64557 category: switch disabledIf to hideIf on delete form

This commit is contained in:
Davo Smith 2019-01-14 10:26:30 +00:00
parent 87c7fb6e9a
commit 309686547a

View 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);