mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
Merge branch 'MDL-33554' of git://github.com/mouneyrac/moodle
This commit is contained in:
commit
f90848689c
@ -1376,6 +1376,9 @@ class core_course_external extends external_api {
|
||||
// Finally move the category.
|
||||
move_category($category, $parent_cat);
|
||||
$category->parent = $cat['parent'];
|
||||
// Get updated path by move_category().
|
||||
$category->path = $DB->get_field('course_categories', 'path',
|
||||
array('id' => $category->id));
|
||||
}
|
||||
$DB->update_record('course_categories', $category);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user