Skip to content

Commit

Permalink
MDL-39827 course: Trigger invalidate cache event while changing sort-…
Browse files Browse the repository at this point in the history
…order of category
  • Loading branch information
Rajesh Taneja committed May 27, 2013
1 parent 73f560c commit 0ca328e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions course/manage.php
Expand Up @@ -183,6 +183,7 @@
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);
}

Expand Down

0 comments on commit 0ca328e

Please sign in to comment.