* 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 c3b642a39a
commit ba55ea67cc

View File

@ -2246,13 +2246,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']);
}