From 389596faa867d8dd57621d67b4c82e04da918258 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 8 Apr 2005 18:51:59 +0000 Subject: [PATCH] added call to bolink::notify_update($app,$id,$data=null) method on updated of infolog entries --- infolog/inc/class.boinfolog.inc.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index a5f777db45..031acb34b0 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -27,6 +27,7 @@ { var $enums; var $so; + var $link; var $vfs; var $vfs_basedir='/infolog'; var $valid_pathes = array(); @@ -429,14 +430,18 @@ { if ($values[$time]) $values[$time] -= $this->tz_offset_s; } - if($infoID = $this->so->write($values)) + if($info_id = $this->so->write($values)) { + if (!isset($values['info_type']) || $status_only) + { + $values = $this->read($info_id); + } if($values['info_id']) { // update $GLOBALS['egw']->contenthistory->updateTimeStamp( 'infolog_'.$values['info_type'], - $infoID, 'modify', time() + $info_id, 'modify', time() ); } else @@ -444,12 +449,14 @@ // add $GLOBALS['egw']->contenthistory->updateTimeStamp( 'infolog_'.$values['info_type'], - $infoID, 'add', time() + $info_id, 'add', time() ); } + // notify the link-class about the update, as other apps may be subscribt to it + $this->link->notify_update('infolog',$info_id,$values); } - return $infoID; + return $info_id; } /**