From 200b99cd9f5bec6718507afb75a3af5c6533ee2c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 29 May 2004 08:01:37 +0000 Subject: [PATCH] fixed new uid creation: uid is not null, so we need to write a dummy-value, before we knew the actual id --- calendar/inc/class.socalendar_sql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.socalendar_sql.inc.php b/calendar/inc/class.socalendar_sql.inc.php index 479be4caa7..b5b7f821e8 100755 --- a/calendar/inc/class.socalendar_sql.inc.php +++ b/calendar/inc/class.socalendar_sql.inc.php @@ -584,8 +584,8 @@ $this->stream->lock($locks); if($event['id'] == 0) { - $this->stream->query('INSERT INTO phpgw_cal(title,owner,priority,is_public,category) ' - . "values('".$this->stream->db_addslashes($event['title']) + $this->stream->query('INSERT INTO phpgw_cal(uid,title,owner,priority,is_public,category) ' + . "values('*new*','".$this->stream->db_addslashes($event['title']) . "',".(int)$event['owner'].','.(int)$event['priority'].','.(int)$event['public'].",'" . $event['category']."')",__LINE__,__FILE__); $event['id'] = $this->stream->get_last_insert_id('phpgw_cal','cal_id');