mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
"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'"
This commit is contained in:
parent
26b9126bf6
commit
42824ef687
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user