Advanced Search: Sort allowed values

SVN:b1162[5472]
This commit is contained in:
Eric Espié
2018-03-20 14:20:07 +00:00
parent 27b9748f86
commit 9b42af0149

View File

@@ -275,7 +275,13 @@ class SearchForm
}
}
return array('values' => $oAttrDef->GetAllowedValues());
$aAllowedValues = $oAttrDef->GetAllowedValues();
if (is_array($aAllowedValues))
{
asort($aAllowedValues);
}
return array('values' => $aAllowedValues);
}
/**