mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
"fix for optgroup's, eg. used in addressbook now"
This commit is contained in:
parent
0ca42fe9ac
commit
3f3954440d
@ -1490,6 +1490,15 @@ foreach($sess as $key => $val)
|
|||||||
}
|
}
|
||||||
if (!isset($GLOBALS['egw_info']['etemplate']['to_process'][$form_name]))
|
if (!isset($GLOBALS['egw_info']['etemplate']['to_process'][$form_name]))
|
||||||
{
|
{
|
||||||
|
// fix for optgroup's
|
||||||
|
foreach($sels as $key => $val)
|
||||||
|
{
|
||||||
|
if (is_array($val))
|
||||||
|
{
|
||||||
|
$sels += array_keys($val);
|
||||||
|
unset($sels[$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = array(
|
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = array(
|
||||||
'type' => $cell['type'],
|
'type' => $cell['type'],
|
||||||
'needed' => $cell['needed'],
|
'needed' => $cell['needed'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user