mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
"flatten values first (some selectbox values are given multi-dimensional), causing eg. default for notifications not being displayed"
This commit is contained in:
parent
8cbd43d9be
commit
77d2fa4b73
@ -542,6 +542,15 @@
|
|||||||
}
|
}
|
||||||
if($GLOBALS['type'] == 'user' && $GLOBALS['egw']->preferences->default[$_appname][$name])
|
if($GLOBALS['type'] == 'user' && $GLOBALS['egw']->preferences->default[$_appname][$name])
|
||||||
{
|
{
|
||||||
|
// flatten values first (some selectbox values are given multi-dimensional)
|
||||||
|
foreach($values as $id => $val)
|
||||||
|
{
|
||||||
|
if (is_array($val))
|
||||||
|
{
|
||||||
|
unset($values[$id]);
|
||||||
|
$values += $val;
|
||||||
|
}
|
||||||
|
}
|
||||||
$defs = array();
|
$defs = array();
|
||||||
foreach(explode(',',$GLOBALS['egw']->preferences->default[$_appname][$name]) as $def)
|
foreach(explode(',',$GLOBALS['egw']->preferences->default[$_appname][$name]) as $def)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user