diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index fdf91a5be7..90d836d87f 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -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'],