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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user