MDL-18297: Forgot that course cache needs rebuilding for upgraded dates
This commit is contained in:
@@ -1645,6 +1645,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
||||
/// 'until' date in an activity condition should have 1 second subtracted
|
||||
/// (to go from 0:00 on the following day to 23:59 on the previous one).
|
||||
$DB->execute('UPDATE {course_modules} SET availableuntil = availableuntil - 1 WHERE availableuntil <> 0');
|
||||
rebuild_course_cache(0, true);
|
||||
|
||||
/// Main savepoint reached
|
||||
upgrade_main_savepoint($result, 2009041700);
|
||||
|
||||
Reference in New Issue
Block a user