updating preferences object in session too

This commit is contained in:
Ralf Becker 2010-11-16 14:28:33 +00:00
parent cc3095647e
commit f7f05beb20

View File

@ -716,6 +716,9 @@ class preferences
$this->db->transaction_commit();
// no need to invalidate session cache, if we write the prefs to the session too
$egw = unserialize($_SESSION[egw_session::EGW_OBJECT_CACHE]);
$egw->preferences = $this;
$_SESSION[egw_session::EGW_OBJECT_CACHE] = serialize($egw);
}
$_SESSION[egw_session::EGW_INFO_CACHE]['user']['preferences'] = $GLOBALS['egw_info']['user']['preferences'] = $this->data;