forked from extern/egroupware
* Calendar: fix SQL error when automatic purge of older events is configured
This commit is contained in:
parent
cd4c3ffbbc
commit
9f28be8f75
@ -1633,7 +1633,7 @@ ORDER BY cal_user_type, cal_usre_id
|
|||||||
}
|
}
|
||||||
// Custom fields
|
// Custom fields
|
||||||
Api\Storage\Customfields::handle_files('calendar', $cal_id, $event);
|
Api\Storage\Customfields::handle_files('calendar', $cal_id, $event);
|
||||||
|
|
||||||
foreach($event as $name => $value)
|
foreach($event as $name => $value)
|
||||||
{
|
{
|
||||||
if ($name[0] == '#')
|
if ($name[0] == '#')
|
||||||
@ -2245,7 +2245,7 @@ ORDER BY cal_user_type, cal_usre_id
|
|||||||
),array(
|
),array(
|
||||||
'sync_appname' => 'calendar',
|
'sync_appname' => 'calendar',
|
||||||
'sync_contentid' => $row['cal_id'], // sync_contentid is varchar(60)!
|
'sync_contentid' => $row['cal_id'], // sync_contentid is varchar(60)!
|
||||||
), __LINE__, __FILE__);
|
), __LINE__, __FILE__, 'calendar');
|
||||||
// handle links
|
// handle links
|
||||||
Link::unlink('', 'calendar', $row['cal_id']);
|
Link::unlink('', 'calendar', $row['cal_id']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user