Do not duplicate column names in strange situation when an axis is equal to the measurement
parent
6ac5ded228
commit
66ffaeaee8
|
@ -136,7 +136,8 @@ $vars->{measure} = $measure;
|
|||
# Validate the values in the axis fields or throw an error.
|
||||
my %a;
|
||||
my @group_by = grep { !($a{$_}++) } values %$field;
|
||||
my @axis_fields = (@group_by, $measures->{$measure});
|
||||
my @axis_fields = @group_by;
|
||||
push @axis_fields, $measures->{$measure} unless $a{$measures->{$measure}};
|
||||
|
||||
# Clone the params, so that Bugzilla::Search can modify them
|
||||
my $params = new Bugzilla::CGI($cgi);
|
||||
|
|
Loading…
Reference in New Issue