Skip to content

Commit

Permalink
Issue #2804: Added sorting for df reference select dropdowns.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Jan 10, 2024
1 parent 658a1ef commit 28f8996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Kernel/System/DynamicField/Driver/BaseReference.pm
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ sub EditFieldRender {
my $FieldID = $FieldName . '_' . $ValueIndex;
push @SelectionHTML, $Param{LayoutObject}->BuildSelection(
Data => $PossibleValues || {},
Sort => 'AlphanumericKey',
Disabled => $Param{Readonly},
Name => $FieldName,
ID => $FieldID,
Expand All @@ -277,6 +278,7 @@ sub EditFieldRender {
my @SelectedIDs = grep {$_} $Value->@*;
push @SelectionHTML, $Param{LayoutObject}->BuildSelection(
Data => $PossibleValues || {},
Sort => 'AlphanumericKey',
Disabled => $Param{Readonly},
Name => $FieldName,
SelectedID => \@SelectedIDs,
Expand Down Expand Up @@ -343,6 +345,7 @@ sub EditFieldRender {

my $SelectionHTML = $Param{LayoutObject}->BuildSelection(
Data => $PossibleValues || {},
Sort => 'AlphanumericKey',
Disabled => $Param{Readonly},
Name => $FieldName,
ID => $FieldTemplateData{FieldID},
Expand Down

0 comments on commit 28f8996

Please sign in to comment.