mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-34389-subcategories-for-category-changer' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
dcb623be71
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class course_edit_form extends moodleform {
|
|||
}
|
||||
} else {
|
||||
if (has_capability('moodle/course:changecategory', $coursecontext)) {
|
||||
$displaylist = coursecat::make_categories_list('moodle/course:create');
|
||||
$displaylist = coursecat::make_categories_list('moodle/course:changecategory');
|
||||
if (!isset($displaylist[$course->category])) {
|
||||
//always keep current
|
||||
$displaylist[$course->category] = coursecat::get($course->category, MUST_EXIST, true)->get_formatted_name();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue