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";