From 3a15383d0ebbc0abe003077e76c20fb1e93b6c6f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Apr 2011 09:33:03 +0000 Subject: [PATCH] fixed empty CREATED and LAST-MODIFIED dates --- infolog/inc/class.infolog_ical.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_ical.inc.php b/infolog/inc/class.infolog_ical.inc.php index b7be2bcf9f..6651ca2024 100644 --- a/infolog/inc/class.infolog_ical.inc.php +++ b/infolog/inc/class.infolog_ical.inc.php @@ -320,8 +320,9 @@ class infolog_ical extends infolog_bo } $vevent->setAttribute('DTSTAMP',time()); - $vevent->setAttribute('CREATED',$GLOBALS['egw']->contenthistory->getTSforAction('infolog_task',$_taskID,'add')); - $vevent->setAttribute('LAST-MODIFIED',$GLOBALS['egw']->contenthistory->getTSforAction('infolog_task',$_taskID,'modify')); + $vevent->setAttribute('CREATED',$GLOBALS['egw']->contenthistory->getTSforAction('infolog_task',$taskData['info_id'],'add')); + $vevent->setAttribute('LAST-MODIFIED', $taskData['info_datemodified'] ? $taskData['info_datemodified'] : + $GLOBALS['egw']->contenthistory->getTSforAction('infolog_task',$taskData['info_id'],'modify')); $vevent->setAttribute('CLASS',$taskData['info_access'] == 'public' ? 'PUBLIC' : 'PRIVATE'); $vevent->setAttribute('STATUS',$this->status2vtodo($taskData['info_status'])); // we try to preserv the original infolog status as X-INFOLOG-STATUS, so we can restore it, if the user does not modify STATUS