Permalink
Browse files

MDL-52370 course: purge contacts cache on role rename

Previously teachers would rename roles and the change would not be
reflected in course listings.
  • Loading branch information...
danpoltawski committed Dec 1, 2015
1 parent c18acb8 commit 29d4cc656f6e11333422e1d1808153bbb313a404
Showing with 2 additions and 0 deletions.
  1. +2 −0 course/lib.php
View
@@ -2486,6 +2486,8 @@ function save_local_role_names($courseid, $data) {
$rolename->name = $value;
$DB->insert_record('role_names', $rolename);
}
// This will ensure the course contacts cache is purged..
coursecat::role_assignment_changed($roleid, $context);
}
}

0 comments on commit 29d4cc6

Please sign in to comment.