We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6006ed commit 9b14619Copy full SHA for 9b14619
1 file changed
report.cgi
@@ -29,6 +29,7 @@ use Bugzilla::Constants;
29
use Bugzilla::Util;
30
use Bugzilla::Error;
31
use Bugzilla::Field;
32
+use List::MoreUtils qw(uniq);
33
34
my $cgi = Bugzilla->cgi;
35
my $template = Bugzilla->template;
@@ -323,7 +324,7 @@ sub get_names {
323
324
foreach my $field (@select_fields) {
325
my @names = map($_->name, @{$field->legal_values});
326
unshift @names, ' ' if $field->name eq 'resolution';
- $fields{$field->name} = \@names;
327
+ $fields{$field->name} = [ uniq @names ];
328
}
329
my $field_list = $fields{$field};
330
my @sorted;
0 commit comments