Merge branch 'MDL-76936' of https://github.com/HirotoKagotani/moodle
This commit is contained in:
@@ -5627,6 +5627,10 @@ function reset_course_userdata($data) {
|
||||
// Update calendar events for all modules.
|
||||
course_module_bulk_update_calendar_events($modname, $data->courseid);
|
||||
}
|
||||
// Purge the course cache after resetting course start date. MDL-76936
|
||||
if ($data->timeshift) {
|
||||
course_modinfo::purge_course_cache($data->courseid);
|
||||
}
|
||||
}
|
||||
|
||||
// Mention unsupported mods.
|
||||
|
||||
Reference in New Issue
Block a user