mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
save states of calendar view to session only when we are in calendar
This commit is contained in:
parent
c0be4dbc19
commit
d813c7adc7
@ -371,7 +371,9 @@ class calendar_ui
|
||||
$this->view_menuaction = $this->view == 'listview' ? 'calendar.calendar_uilist.listview' : 'calendar.calendar_uiviews.'.$this->view;
|
||||
|
||||
if ($this->debug > 0 || $this->debug == 'manage_states') $this->bo->debug_message('uical::manage_states(%1) session was %2, states now %3',True,$set_states,$states_session,$states);
|
||||
// save the states in the session
|
||||
// save the states in the session only when we are in calendar
|
||||
if ($GLOBALS['egw_info']['flags']['currentapp']=='calendar')
|
||||
{
|
||||
$GLOBALS['egw']->session->appsession('session_data','calendar',$states);
|
||||
// save defined states into the user-prefs
|
||||
if(!empty($states) && is_array($states))
|
||||
@ -384,6 +386,7 @@ class calendar_ui
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gets the icons displayed for a given event
|
||||
|
Loading…
Reference in New Issue
Block a user