From 88d26275229b5f52f435130496169766313c87b7 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Sat, 21 Aug 2004 04:49:17 +0000 Subject: Bug 224208 Add a higher level of categorization (.ie departments, locations, etc.) patch by Albert Ting r=joel, glob a=myk --- report.cgi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'report.cgi') 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); -- cgit v1.2.3-24-g4f1b