"fix for optgroup's, eg. used in addressbook now"

This commit is contained in:
Ralf Becker 2008-01-26 01:24:42 +00:00
parent 0ca42fe9ac
commit 3f3954440d

View File

@ -1490,6 +1490,15 @@ foreach($sess as $key => $val)
}
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(
'type' => $cell['type'],
'needed' => $cell['needed'],