From: miketosh Date: Wed, 8 Dec 2010 15:31:31 +0000 (+0100) Subject: Bug 567953: Components which exist in several products are duplicated in tabular... X-Git-Tag: bugzilla-4.0rc2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79d549ae91df8701a8b2c2f8bf5957b670952a93;p=thirdparty%2Fbugzilla.git Bug 567953: Components which exist in several products are duplicated in tabular reports r/a=LpSolit --- diff --git a/report.cgi b/report.cgi index 5d2679e1ef..279d7ceeab 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;