IcingaObjectFieldForm: sort case insensitive

fixes #2358
This commit is contained in:
Thomas Gelf 2022-12-05 12:48:30 +01:00
parent 616d329be3
commit e5de673f68
2 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class IcingaObjectFieldForm extends DirectorObjectForm
// Prepare combined fields array
$fields = array();
if (! empty($suggestedFields)) {
asort($existingFields);
asort($suggestedFields, SORT_NATURAL | SORT_FLAG_CASE);
$fields[$this->translate('Suggested fields')] = $suggestedFields;
}
@ -100,6 +100,7 @@ class IcingaObjectFieldForm extends DirectorObjectForm
}
if (! empty($existingFields)) {
asort($existingFields, SORT_NATURAL | SORT_FLAG_CASE);
$fields[$this->translate('Other available fields')] = $existingFields;
}

View File

@ -11,6 +11,7 @@ This version hasn't been released yet
### UI
* FEATURE: allow to clone commands with fields (#2264)
* FEATURE: Data Fields are now sorted in a case-insensitive way (#2358)
### Icinga Configuration
* FIX: render Set Services to individual zones where required (#1589, #2356)