From c5537bc107a7a29a8206eb21a12bb88c13115b13 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 7 Jul 2008 08:12:54 +0000 Subject: [PATCH] "fixed fatal error, groupdav should be working again" --- infolog/inc/class.infolog_groupdav.inc.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_groupdav.inc.php b/infolog/inc/class.infolog_groupdav.inc.php index 6b695db2fc..36eed70e4e 100644 --- a/infolog/inc/class.infolog_groupdav.inc.php +++ b/infolog/inc/class.infolog_groupdav.inc.php @@ -50,9 +50,18 @@ class infolog_groupdav extends groupdav_handler */ function propfind($path,$options,&$files,$user) { - $icalvc =& $this->_instanciate_icalvc($user); // ToDo: add parameter to only return id & etag - if (($tasks = $this->bo->search($icalvc->_caldef['rscs']['infolog.boinfolog']))) + if (($tasks = $this->bo->search($params=array( + 'order' => 'info_datemodified', + 'sort' => 'DESC', + 'filter' => 'own', // filter my: entries user is responsible for, + // filter own: entries the user own or is responsible for + + // todo add a filter to limit how far back entries from the past get synced + 'col_filter' => Array ( + 'info_type' => 'task', + ), + )))) { foreach($tasks as $task) {