#774 Sort the enums in the selection drop-down box (search forms) -initially based on the declaration order

SVN:trunk[2878]
This commit is contained in:
Romain Quetiez
2013-10-08 07:34:59 +00:00
parent 4be0837ead
commit b0ecb2f6c6

View File

@@ -1460,6 +1460,7 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
$sValue = "<select class=\"multiselect\" size=\"1\" name=\"{$sFilterCode}[]\" multiple>\n";
$bMultiSelect = true;
//$sValue .= "<option value=\"\">".Dict::S('UI:SearchValue:Any')."</option>\n";
asort($aAllowedValues);
foreach($aAllowedValues as $key => $value)
{
if (is_array($sFilterValue) && in_array($key, $sFilterValue))