From: miketosh Date: Wed, 8 Dec 2010 15:29:46 +0000 (+0100) Subject: Bug 567953: Components which exist in several products are duplicated in tabular... X-Git-Tag: bugzilla-4.1.1~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b146191a073ca7076645b8afcdfd30bbcd1783b;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 d3751aa67f..307b280863 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;