dont show more lines in multiselectbox as we have values

This commit is contained in:
Ralf Becker 2012-02-21 09:22:42 +00:00
parent 7badca95da
commit 77eaf8e7f1

View File

@ -556,7 +556,7 @@ class uisettings
{ {
if (!is_array($default)) $default = explode(',',$default); if (!is_array($default)) $default = explode(',',$default);
$select = html::input_hidden($GLOBALS['type'].'['.$name.']','',false); // causes bosettings not to ignore unsetting all $select = html::input_hidden($GLOBALS['type'].'['.$name.']','',false); // causes bosettings not to ignore unsetting all
$select .= html::checkbox_multiselect($GLOBALS['type'].'['.$name.']',$default,$values,true,'',5); $select .= html::checkbox_multiselect($GLOBALS['type'].'['.$name.']',$default,$values,true,'',min(5,count($values)));
} }
if($GLOBALS['type'] == 'user' && (string)$GLOBALS['egw']->preferences->default[$_appname][$name] !== '') if($GLOBALS['type'] == 'user' && (string)$GLOBALS['egw']->preferences->default[$_appname][$name] !== '')
{ {