Skip to content

Commit 9b14619

Browse files
miketoshLpSolit
authored andcommitted
Bug 567953: Components which exist in several products are duplicated in tabular reports
r/a=LpSolit
1 parent b6006ed commit 9b14619

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

report.cgi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use Bugzilla::Constants;
2929
use Bugzilla::Util;
3030
use Bugzilla::Error;
3131
use Bugzilla::Field;
32+
use List::MoreUtils qw(uniq);
3233

3334
my $cgi = Bugzilla->cgi;
3435
my $template = Bugzilla->template;
@@ -323,7 +324,7 @@ sub get_names {
323324
foreach my $field (@select_fields) {
324325
my @names = map($_->name, @{$field->legal_values});
325326
unshift @names, ' ' if $field->name eq 'resolution';
326-
$fields{$field->name} = \@names;
327+
$fields{$field->name} = [ uniq @names ];
327328
}
328329
my $field_list = $fields{$field};
329330
my @sorted;

0 commit comments

Comments
 (0)