From 42824ef68744e88a381e64195af1d88a8ec096c8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 10 Jun 2008 04:48:19 +0000 Subject: [PATCH] "reworked calendar update 1.5.002 --> 1.6, to fix the method names in alarms If you have alarms set and your calendar is already updated to 1.6, you have to rerun that update by setting the calendar version again to '1.5.002' and visit setup again: UPDATE egw_applications SET app_version='1.5.002' WHERE app_name='calendar' AND app_version='1.5.002'" --- calendar/setup/tables_update.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index 59b935a2fb..f73fb7e8fe 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -1617,5 +1617,15 @@ function calendar_upgrade1_5_001() function calendar_upgrade1_5_002() { + // update the alarm methods + $async = new asyncservice(); + foreach((array)$async->read('cal:%') as $id => $job) + { + if ($job['method'] == 'calendar.bocalupdate.send_alarm') + { + $job['method'] = 'calendar.calendar_boupdate.send_alarm'; + $async->write($job,true); + } + } return $GLOBALS['setup_info']['calendar']['currentver'] = '1.6'; }