mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
"stop calendar to update prefs on each request (do it only on change)"
This commit is contained in:
parent
7ad5e22305
commit
e3c468361d
@ -381,11 +381,14 @@ class calendar_ui
|
|||||||
// save defined states into the user-prefs
|
// save defined states into the user-prefs
|
||||||
if(!empty($states) && is_array($states))
|
if(!empty($states) && is_array($states))
|
||||||
{
|
{
|
||||||
$saved_states = array_intersect_key($states,array_flip($this->states_to_save));
|
$saved_states = serialize(array_intersect_key($states,array_flip($this->states_to_save)));
|
||||||
$GLOBALS['egw']->preferences->add('calendar','saved_states',serialize($saved_states));
|
if ($saved_states != $this->cal_prefs['saved_states'])
|
||||||
|
{
|
||||||
|
$GLOBALS['egw']->preferences->add('calendar','saved_states',$saved_states);
|
||||||
$GLOBALS['egw']->preferences->save_repository(false,'user',false);
|
$GLOBALS['egw']->preferences->save_repository(false,'user',false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gets the icons displayed for a given event
|
* gets the icons displayed for a given event
|
||||||
|
Loading…
Reference in New Issue
Block a user