diff options
-rwxr-xr-x | report.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/report.cgi b/report.cgi index d3751aa67..307b28086 100755 --- a/report.cgi +++ b/report.cgi @@ -29,6 +29,7 @@ use Bugzilla::Constants; use Bugzilla::Util; use Bugzilla::Error; use Bugzilla::Field; +use List::MoreUtils qw(uniq); my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; @@ -323,7 +324,7 @@ sub get_names { foreach my $field (@select_fields) { my @names = map($_->name, @{$field->legal_values}); unshift @names, ' ' if $field->name eq 'resolution'; - $fields{$field->name} = \@names; + $fields{$field->name} = [ uniq @names ]; } my $field_list = $fields{$field}; my @sorted; |