From a2e21a1a5082428e1794b93f9f43d03849f5c229 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 14 Apr 2005 22:40:49 +0000 Subject: [PATCH] hack to get the planner working again for groups, still not perfect, I need to finish the rewrite ;-) --- calendar/inc/class.uicalendar.inc.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 7d64f3dfaa..facd7365a1 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -2194,6 +2194,7 @@ { // generate duplicate free list of events within observed interval // + /* $this->bo->store_to_cache( Array( 'syear' => $this->bo->year, @@ -2205,7 +2206,24 @@ ) ); $this->bo->remove_doubles_in_cache($this->planner_firstday,$this->planner_lastday); - + */ + // hack to get the planner working again + $this->bo->cached_events = $GLOBALS['uical']->bo->search(array( + 'start' => array( + 'year' => $GLOBALS['uical']->year, + 'month' => $GLOBALS['uical']->month, + 'day' => 1, + ), + 'end' => array( + 'year' => $GLOBALS['uical']->year, + 'month' => 1+$GLOBALS['uical']->month, + 'day' => 0, + ), + 'cat_id' => $GLOBALS['uical']->cat_id, + 'users' => $GLOBALS['uical']->is_group ? $GLOBALS['uical']->g_owner : explode(',',$GLOBALS['uical']->owner), + 'filter' => $GLOBALS['uical']->filter, + 'daywise' => True, + )); // process all events within observed interval // for($v=$this->planner_firstday;$v<=$this->planner_lastday;$v++)