From 93540e16042e9191813e13d5d1852eff58b16c09 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Apr 2011 07:54:30 +0000 Subject: [PATCH] * Preferences: fixed not working setting of preferences without a logout need to call preferences::add() or preferences::delete(), to also set affective prefs! --- preferences/inc/class.bosettings.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/preferences/inc/class.bosettings.inc.php b/preferences/inc/class.bosettings.inc.php index ae25993ad1..e12c5793ea 100644 --- a/preferences/inc/class.bosettings.inc.php +++ b/preferences/inc/class.bosettings.inc.php @@ -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=
"; print_r($repository[$_appname]); echo "
\n";