aboutsummaryrefslogtreecommitdiffstats
path: root/report.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'report.cgi')
-rwxr-xr-xreport.cgi8
1 files changed, 7 insertions, 1 deletions
diff --git a/report.cgi b/report.cgi
index 66060723d..fac2f0e75 100755
--- a/report.cgi
+++ b/report.cgi
@@ -113,6 +113,7 @@ $columns{'bug_status'} = "bugs.bug_status";
$columns{'resolution'} = "bugs.resolution";
$columns{'component'} = "map_components.name";
$columns{'product'} = "map_products.name";
+$columns{'classification'} = "map_classifications.name";
$columns{'version'} = "bugs.version";
$columns{'op_sys'} = "bugs.op_sys";
$columns{'votes'} = "bugs.votes";
@@ -134,8 +135,13 @@ $columns{''} = "42217354";
|| ThrowCodeError("report_axis_invalid", {fld => "z", val => $tbl_field});
my @axis_fields = ($row_field, $col_field, $tbl_field);
-
my @selectnames = map($columns{$_}, @axis_fields);
+# add product if person is requesting classification
+if (lsearch(\@axis_fields,"classification") >= 0) {
+ if (lsearch(\@axis_fields,"product") < 0) {
+ push(@selectnames,($columns{'product'}));
+ }
+}
# Clone the params, so that Bugzilla::Search can modify them
my $params = new Bugzilla::CGI($cgi);