Merge branch 'MDL-72785' of git://github.com/paulholden/moodle

This commit is contained in:
Jun Pataleta 2021-12-02 17:05:55 +08:00
commit 190a520fd6

View File

@ -112,7 +112,6 @@ class core_course_deletecategory_form extends moodleform {
if ($displaylist) {
$mform->addElement('autocomplete', 'newparent', get_string('movecategorycontentto'), $displaylist);
$mform->addRule('newparent', null, 'required', null, 'client');
if (in_array($this->coursecat->parent, $displaylist)) {
$mform->setDefault('newparent', $this->coursecat->parent);
}