Merge branch 'wip-MDL-41517-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE
This commit is contained in:
+4
-1
@@ -2416,7 +2416,10 @@ function update_course($data, $editoroptions = NULL) {
|
||||
context_moved($context, $newparent);
|
||||
}
|
||||
|
||||
fix_course_sortorder();
|
||||
if ($movecat || (isset($data->sortorder) && $oldcourse->sortorder != $data->sortorder)) {
|
||||
fix_course_sortorder();
|
||||
}
|
||||
|
||||
// purge appropriate caches in case fix_course_sortorder() did not change anything
|
||||
cache_helper::purge_by_event('changesincourse');
|
||||
if ($changesincoursecat) {
|
||||
|
||||
Reference in New Issue
Block a user