mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-39827 course: Trigger invalidate cache event while changing sort-order of category
This commit is contained in:
parent
73f560c7b2
commit
0ca328ed23
@ -183,6 +183,7 @@ if ((!empty($moveupcat) or !empty($movedowncat)) and confirm_sesskey()) {
|
||||
if ($swapcategory and $movecategory) {
|
||||
$DB->set_field('course_categories', 'sortorder', $swapcategory->sortorder, array('id' => $movecategory->id));
|
||||
$DB->set_field('course_categories', 'sortorder', $movecategory->sortorder, array('id' => $swapcategory->id));
|
||||
cache_helper::purge_by_event('changesincoursecat');
|
||||
add_to_log(SITEID, "category", "move", "editcategory.php?id=$movecategory->id", $movecategory->id);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user