summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-04-10 16:29:25 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-04-10 16:29:25 +0200
commita2689d0747d489c5d6f1b073a829df7d69357bda (patch)
tree5766084111249223f20337ecfdac5d74af777bd5 /reports.cgi
parent13408dc745948de52f0dc6f1a3e7080a39289ab4 (diff)
downloadbugzilla-a2689d0747d489c5d6f1b073a829df7d69357bda.tar.gz
bugzilla-a2689d0747d489c5d6f1b073a829df7d69357bda.tar.xz
Backout of Bug 990982 - backport bug 539894 to bmo (Use <optgroup/> to group products into classifications in the product drop-down on show_bug.cgi)
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/reports.cgi b/reports.cgi
index edc7eb55b..01bbb50c7 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -77,7 +77,13 @@ if (!$product_name) {
push(@datasets, $datasets);
}
+ # We only want those products that the user has permissions for.
+ my @myproducts = ('-All-');
+ # Extract product names from objects and add them to the list.
+ push( @myproducts, map { $_->name } @{$user->get_selectable_products} );
+
$vars->{'datasets'} = \@datasets;
+ $vars->{'products'} = \@myproducts;
print $cgi->header();
}