From 3f344fd85236264ef799223970aac5d64fcde650 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 9 Jun 2010 16:14:19 +0000 Subject: [PATCH] store whole state in prefs, so calendar displays identical view after a new login (beside the date) --- calendar/inc/class.calendar_hooks.inc.php | 4 +++- calendar/inc/class.calendar_ui.inc.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_hooks.inc.php b/calendar/inc/class.calendar_hooks.inc.php index 48b54b9d94..4ea23b6490 100644 --- a/calendar/inc/class.calendar_hooks.inc.php +++ b/calendar/inc/class.calendar_hooks.inc.php @@ -251,7 +251,8 @@ class calendar_hooks } return array( - 'defaultcalendar' => array( +/* not longer used, as we store whole state in prefs + 'defaultcalendar' => array( 'type' => 'select', 'label' => 'default calendar view', 'name' => 'defaultcalendar', @@ -261,6 +262,7 @@ class calendar_hooks 'admin' => False, 'default'=> 'week', ), +*/ 'days_in_weekview' => array( 'type' => 'select', 'label' => 'default week view', diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index 3890d66a7d..4644d8312b 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -123,7 +123,7 @@ class calendar_ui /** * @var array $states_to_save all states that will be saved to the user prefs */ - var $states_to_save = array('owner','filter'); + var $states_to_save = array('owner','filter','cat_id','view','sortby','planner_days'); /** * Constructor