mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
* Preferences: fixed not working setting of preferences without a logout
need to call preferences::add() or preferences::delete(), to also set affective prefs!
This commit is contained in:
parent
418fd825b2
commit
93540e1604
@ -195,6 +195,8 @@
|
||||
|
||||
if($prefix != '')
|
||||
{
|
||||
// AFAIK this is NOT used anymore, was used in old email app
|
||||
throw egw_exception_assertion_failed(__METHOD__."(,,$notifies, $type, prefix='$prefix') prefix!=''!");
|
||||
$prefix_arr = explode('/',$prefix);
|
||||
foreach($prefix_arr as $pre)
|
||||
{
|
||||
@ -225,10 +227,14 @@
|
||||
{
|
||||
$prefs[$var] = $GLOBALS['egw']->preferences->lang_notify($prefs[$var],$notifies[$var],True);
|
||||
}
|
||||
// need to call preferences::add, to also set affective prefs!
|
||||
$GLOBALS['egw']->preferences->add($appname, $var, $prefs[$var], $type);
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($prefs[$var]);
|
||||
// need to call preferences::delete, to also set affective prefs!
|
||||
$GLOBALS['egw']->preferences->delete($appname, $var, $type);
|
||||
}
|
||||
}
|
||||
//echo "prefix='$prefix', prefs=<pre>"; print_r($repository[$_appname]); echo "</pre>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user