diff options
author | miketosh <michael.j.tosh@lmco.com> | 2010-12-08 16:29:46 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-12-08 16:29:46 +0100 |
commit | 9b146191a073ca7076645b8afcdfd30bbcd1783b (patch) | |
tree | 11c106b2f851afc813d2c1baa1f0e59b4a1ef7dd /report.cgi | |
parent | b6006edb25d27ad3f527fd2889688dd788649fa5 (diff) | |
download | bugzilla-9b146191a073ca7076645b8afcdfd30bbcd1783b.tar.gz bugzilla-9b146191a073ca7076645b8afcdfd30bbcd1783b.tar.xz |
Bug 567953: Components which exist in several products are duplicated in tabular reports
r/a=LpSolit
Diffstat (limited to 'report.cgi')
-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; |