MDL-52370 course: purge contacts cache on role rename

Previously teachers would rename roles and the change would not be
reflected in course listings.
This commit is contained in:
Dan Poltawski
2015-12-01 13:14:54 +00:00
parent 8568798f76
commit bbf7cf2c44
+2
View File
@@ -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);
}
}