mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-72785' of git://github.com/paulholden/moodle
This commit is contained in:
commit
190a520fd6
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user