Browse Source

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2878 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 years ago
parent
commit
cc0049a2ee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/cmdbabstract.class.inc.php

+ 1 - 0
application/cmdbabstract.class.inc.php

@@ -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))