[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: calendar/inc class.socalendar_sql.inc.php,1.28.
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: calendar/inc class.socalendar_sql.inc.php,1.28.2.4,1.28.2.5 |
Date: |
Mon, 14 Apr 2003 17:23:21 -0400 |
Update of /cvsroot/phpgroupware/calendar/inc
In directory subversions:/tmp/cvs-serv9053
Modified Files:
Tag: Version-0_9_14-branch
class.socalendar_sql.inc.php
Log Message:
fix for bug #3162
creation of new calendar entries fails, because tempnam used to create the id
returns a to long string (possibly because TMP_DIR is to long)
use the get_last_insert_id function now
Index: class.socalendar_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.socalendar_sql.inc.php,v
retrieving revision 1.28.2.4
retrieving revision 1.28.2.5
diff -C2 -r1.28.2.4 -r1.28.2.5
*** class.socalendar_sql.inc.php 13 Nov 2002 03:26:29 -0000 1.28.2.4
--- class.socalendar_sql.inc.php 14 Apr 2003 21:23:17 -0000 1.28.2.5
***************
*** 452,455 ****
--- 452,456 ----
$event['uid'] =
$part[0].'-'.$part[1].'@'.$id_suffix;
}
+ /* makes problems if tempnam is to long for title column, see bug #3162
$temp_name =
tempnam($GLOBALS['phpgw_info']['server']['temp_dir'],'cal');
$this->stream->query('INSERT INTO
phpgw_cal(uid,title,owner,priority,is_public,category) '
***************
*** 458,461 ****
--- 459,468 ----
$this->stream->next_record();
$event['id'] = $this->stream->f('cal_id');
+ */
+ $this->stream->query('INSERT INTO
phpgw_cal(uid,title,owner,priority,is_public,category) '
+ .
"values('".$event['uid']."','".$this->stream->db_addslashes($event['title'])
+ .
"',".$event['owner'].','.$event['priority'].','.$event['public'].",'"
+ . $event['category']."')",__LINE__,__FILE__);
+ $event['id'] =
$this->stream->get_last_insert_id('phpgw_cal','cal_id');
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: calendar/inc class.socalendar_sql.inc.php,1.28.2.4,1.28.2.5,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: property/inc class.borequest.inc.php,1.1,1.2 class.sorequest.inc.php,1.1,1.2 class.uirequest.inc.php,1.1,1.2
- Next by Date:
[Phpgroupware-cvs] CVS: calendar/inc class.socalendar_sql.inc.php,1.28.2.4,1.28.2.4.2.1
- Previous by thread:
[Phpgroupware-cvs] CVS: property/inc class.borequest.inc.php,1.1,1.2 class.sorequest.inc.php,1.1,1.2 class.uirequest.inc.php,1.1,1.2
- Next by thread:
[Phpgroupware-cvs] CVS: calendar/inc class.socalendar_sql.inc.php,1.28.2.4,1.28.2.4.2.1
- Index(es):