mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix missing state information
This commit is contained in:
parent
4cd4297299
commit
7018d081d2
@ -419,9 +419,7 @@ class calendar_ui
|
||||
$GLOBALS['egw']->preferences->add('calendar','saved_states',$saved_states);
|
||||
$GLOBALS['egw']->preferences->save_repository(false,'user',true);
|
||||
}
|
||||
// only run for calendar views
|
||||
if (in_array(gettype($this), array('calendar_uilist', 'calendar_uiviews')))
|
||||
{
|
||||
|
||||
// store state in request for clientside favorites to use
|
||||
// remove date and other states never stored in a favorite
|
||||
$states = array_diff_key($states,array('date'=>false,'year'=>false,'month'=>false,'day'=>false,'save_owner'=>false));
|
||||
@ -438,7 +436,7 @@ class calendar_ui
|
||||
{
|
||||
egw_framework::set_extra('calendar', 'state', $states);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user