diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 84e85ef8ac..bf7cdc025b 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -653,10 +653,11 @@ class infolog_bo * @param boolean $check_defaults=true check and set certain defaults * @param boolean $touch_modified=true touch the modification data and sets the modiefier's user-id * @param boolean $user2server=true conversion between user- and server-time necessary + * @param boolean $skip_notification=false true = do NOT send notification, false (default) = send notifications * * @return int/boolean info_id on a successfull write or false */ - function write(&$values, $check_defaults=true, $touch_modified=true, $user2server=true) + function write(&$values, $check_defaults=true, $touch_modified=true, $user2server=true, $skip_notification=false) { //echo "boinfolog::write()values="; _debug_array($values); if (!$values['info_id'] && !$this->check_access(0,EGW_ACL_EDIT,$values['info_owner']) && @@ -891,7 +892,8 @@ class infolog_bo { $to_write = array_merge($to_write,$missing_fields); } - $this->tracking->track($to_write,$old,$this->user,$values['info_status'] == 'deleted' || $old['info_status'] == 'deleted'); + $this->tracking->track($to_write,$old,$this->user,$values['info_status'] == 'deleted' || $old['info_status'] == 'deleted', + null,$skip_notification); } if ($info_from_set) $values['info_from'] = ''; diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 171f95374d..6e7b5191d4 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -967,7 +967,8 @@ class infolog_ui 'info_custom_from' => $content['info_custom_from'], ); //echo "
updating info_link_id: ".print_r($to_write,true)."
\n"; - $this->bo->write($to_write,False); + $this->bo->write($to_write,False,true,true,true); // last true = no notifications, as no real change + // we need eg. the new modification date, for further updates $content = array_merge($content,$to_write); }