mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-28 22:01:55 +02:00
Added a call to sessions->delete_cache() and a call to re-read the users session data when being set to the default preferences set by the admin.
This commit is contained in:
parent
a039cec5bd
commit
3f95bef544
@ -239,6 +239,7 @@
|
|||||||
|
|
||||||
if ($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $this->account_id == $GLOBALS['phpgw_info']['user']['account_id'])
|
if ($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $this->account_id == $GLOBALS['phpgw_info']['user']['account_id'])
|
||||||
{
|
{
|
||||||
|
$GLOBALS['phpgw']->session->delete_cache($this->account_id);
|
||||||
$GLOBALS['phpgw']->session->read_repositories(False);
|
$GLOBALS['phpgw']->session->read_repositories(False);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,6 +262,12 @@
|
|||||||
$this->db->query("insert into phpgw_preferences values ('$account_id','"
|
$this->db->query("insert into phpgw_preferences values ('$account_id','"
|
||||||
. $this->db->f('preference_value') . "')",__LINE__,__FILE__);
|
. $this->db->f('preference_value') . "')",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $account_id == $GLOBALS['phpgw_info']['user']['account_id'])
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw']->session->read_repositories(False);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -507,6 +514,7 @@
|
|||||||
// are we dealing with the default email account or an extra email account?
|
// are we dealing with the default email account or an extra email account?
|
||||||
if (!(isset($acctnum)) || ((string)$acctnum == ''))
|
if (!(isset($acctnum)) || ((string)$acctnum == ''))
|
||||||
{
|
{
|
||||||
|
settype($acctnum,'integer');
|
||||||
// account 0 is the default email account
|
// account 0 is the default email account
|
||||||
$acctnum = 0;
|
$acctnum = 0;
|
||||||
// $prefs stays AS IS!
|
// $prefs stays AS IS!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user