* Calendar: fix SQL error during purge caused by droped SyncML support

This commit is contained in:
Ralf Becker 2018-06-14 10:37:48 +02:00
parent 0838e8c57d
commit cd5d3c2e05

View File

@ -2235,13 +2235,6 @@ ORDER BY cal_user_type, cal_usre_id
{
$this->db->delete($table, array('cal_id'=>$row['cal_id']), __LINE__, __FILE__, 'calendar');
}
// handle sync
$this->db->update('egw_api_content_history',array(
'sync_deleted' => time(),
),array(
'sync_appname' => 'calendar',
'sync_contentid' => $row['cal_id'], // sync_contentid is varchar(60)!
), __LINE__, __FILE__, 'calendar');
// handle links
Link::unlink('', 'calendar', $row['cal_id']);
}