automatic cache repeating events after an update
This commit is contained in:
parent
66c3ddcd74
commit
c9d408ff8c
1 changed files with 5 additions and 0 deletions
|
@ -14,4 +14,9 @@ if (version_compare($installedVersion, '0.2.1', '<')) {
|
|||
$stmt = OCP\DB::prepare( 'UPDATE *PREFIX*calendar_calendars SET calendarcolor=? WHERE id=?' );
|
||||
$r = $stmt->execute(array($color,$id));
|
||||
}
|
||||
}
|
||||
$calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser());
|
||||
foreach($calendars as $calendar){
|
||||
OC_Calendar_Repeat::cleancalendar($calendar['id']);
|
||||
OC_Calendar_Repeat::generatecalendar($calendar['id']);
|
||||
}
|
Loading…
Reference in a new issue