diff --git a/addressbook/inc/class.boaddressbook.inc.php b/addressbook/inc/class.boaddressbook.inc.php index 26a2e4d45b..0954311e15 100644 --- a/addressbook/inc/class.boaddressbook.inc.php +++ b/addressbook/inc/class.boaddressbook.inc.php @@ -562,6 +562,11 @@ $fields = $this->xmlrpc2data($fields); } $id = $this->so->add_entry($fields); + + if(id) + { + $GLOBALS['phpgw']->contenthistory->updateTimeStamp('contacts', $id, 'add', time()); + } if ($this->xmlrpc && !$id) { @@ -589,6 +594,11 @@ $fields = $this->xmlrpc2data($fields); } $ok = $this->so->update_entry($fields); + if(ok) + { + $GLOBALS['phpgw']->contenthistory->updateTimeStamp('contacts', $fields['ab_id'], 'modify', time()); + } + } if ($this->xmlrpc && !$ok) { @@ -617,6 +627,7 @@ if($this->check_perms($id,PHPGW_ACL_DELETE)) { $this->so->delete_entry($id); + $GLOBALS['phpgw']->contenthistory->updateTimeStamp('contacts', $id, 'delete', time()); } elseif ($this->xmlrpc) { diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 972ed98e6a..1eec795c56 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -603,6 +603,7 @@ if($this->check_perms(PHPGW_ACL_DELETE,$id)) { $this->so->delete_entry($id); + $GLOBALS['phpgw']->contenthistory->updateTimeStamp('calendar', $id, 'delete', time()); if ($this->xmlrpc) { @@ -1095,6 +1096,7 @@ { $this->so->add_entry($event); $this->send_update(MSG_ADDED,$event['participants'],'',$this->get_cached_event()); + $GLOBALS['phpgw']->contenthistory->updateTimeStamp('calendar', $event['id'], 'add', time()); print_debug('New Event ID',$event['id']); } else @@ -1117,6 +1119,7 @@ } $this->so->cal->event = $event; $this->so->add_entry($event); + $GLOBALS['phpgw']->contenthistory->updateTimeStamp('calendar', $event['id'], 'modify', time()); $this->prepare_recipients($new_event,$old_event); } diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index 6729bcf656..f6fee8b38f 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -279,7 +279,11 @@ $this->link->unlink(0,'infolog',$info_id); + $info = $this->read($info_id); + $this->so->delete($info_id,$delete_children,$new_parent); + + $GLOBALS['phpgw']->contenthistory->updateTimeStamp('infolog_'.$info['info_type'], $info_id, 'delete', time()); } /** @@ -379,7 +383,27 @@ { if ($values[$time]) $values[$time] -= $this->tz_offset_s; } - return $this->so->write($values); + if($infoID = $this->so->write($values)) + { + if($values['info_id']) + { + // update + $GLOBALS['phpgw']->contenthistory->updateTimeStamp( + 'infolog_'.$values['info_type'], + $infoID, 'modify', time() + ); + } + else + { + // add + $GLOBALS['phpgw']->contenthistory->updateTimeStamp( + 'infolog_'.$values['info_type'], + $infoID, 'add', time() + ); + } + } + + return $infoID; } function anzSubs( $info_id )