Fix missing state information

This commit is contained in:
Nathan Gray 2014-02-25 17:59:22 +00:00
parent 4cd4297299
commit 7018d081d2

View File

@ -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);
}
}
}
}
}