MDL-53788 user: fix aggressive course cache rebuilding

This commit is contained in:
Nicholas Hoobin
2016-06-15 09:12:20 +08:00
committed by Andrew Nicols
parent 557ca0146d
commit b77709ca67
+1 -1
View File
@@ -322,7 +322,7 @@ function profile_delete_field($id) {
// but show the field as missing until manually corrected to something else.
// Need to rebuild course cache to update the info.
rebuild_course_cache();
rebuild_course_cache(0, true);
// Try to remove the record from the database.
$DB->delete_records('user_info_field', array('id' => $id));