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