From a88c3fb9fd44f17bfc48b66942e26a27ef6cf7e7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 19 May 2004 07:16:11 +0000 Subject: [PATCH] fix for bug [ 955489 ] CustomFields fails: for new entries the info_id was unset --- infolog/inc/class.soinfolog.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.soinfolog.inc.php b/infolog/inc/class.soinfolog.inc.php index e8611c2d61..ae7b4483b8 100644 --- a/infolog/inc/class.soinfolog.inc.php +++ b/infolog/inc/class.soinfolog.inc.php @@ -351,7 +351,7 @@ @abstract writes the given $values to InfoLog, a new entry gets created if info_id is not set or 0 @syntax write( $values ) @param $values array with the data of the log-entry - @returns nothing direct, but the info_id gets + @return the info_id */ function write($values) // did _not_ ensure ACL { @@ -424,7 +424,7 @@ } else { - $query = "INSERT INTO phpgw_infolog_extra (info_id,info_extra_name,info_extra_value) VALUES ($info_id,'$name','$val')"; + $query = "INSERT INTO phpgw_infolog_extra (info_id,info_extra_name,info_extra_value) VALUES (".$this->data['info_id'].",'$name','$val')"; } $this->db->query($query,__LINE__,__FILE__); }