Do not duplicate column names in strange situation when an axis is equal to the measurement

master
Vitaliy Filippov 2014-07-28 17:29:17 +04:00
parent 6ac5ded228
commit 66ffaeaee8
1 changed files with 2 additions and 1 deletions

View File

@ -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);