Commit 9b146191 authored by miketosh's avatar miketosh Committed by Frédéric Buclin

Bug 567953: Components which exist in several products are duplicated in tabular reports

r/a=LpSolit
parent b6006edb
...@@ -29,6 +29,7 @@ use Bugzilla::Constants; ...@@ -29,6 +29,7 @@ use Bugzilla::Constants;
use Bugzilla::Util; use Bugzilla::Util;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Field; use Bugzilla::Field;
use List::MoreUtils qw(uniq);
my $cgi = Bugzilla->cgi; my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template; my $template = Bugzilla->template;
...@@ -323,7 +324,7 @@ sub get_names { ...@@ -323,7 +324,7 @@ sub get_names {
foreach my $field (@select_fields) { foreach my $field (@select_fields) {
my @names = map($_->name, @{$field->legal_values}); my @names = map($_->name, @{$field->legal_values});
unshift @names, ' ' if $field->name eq 'resolution'; unshift @names, ' ' if $field->name eq 'resolution';
$fields{$field->name} = \@names; $fields{$field->name} = [ uniq @names ];
} }
my $field_list = $fields{$field}; my $field_list = $fields{$field};
my @sorted; my @sorted;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment