forked from extern/egroupware
fix for postgreSQL bug reported by Anthony Messina (amessina-at-messinet.com): sync_contentid is varchar(60) and needs explicit cast, fixed by letting egw_db do the quoting, which is more save anyway
This commit is contained in:
parent
5153a61a63
commit
ce35264ed9
@ -1536,10 +1536,12 @@ 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->query('UPDATE egw_api_content_history
|
||||
SET sync_deleted=NOW()
|
||||
WHERE sync_appname = \'calendar\'
|
||||
AND sync_contentid ='.$row['cal_id'], __LINE__, __FILE__);
|
||||
$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__);
|
||||
// handle links
|
||||
egw_link::unlink('', 'calendar', $row['cal_id']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user