diff options
author | David Lawrence <dkl@mozilla.com> | 2014-04-10 16:29:25 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-04-10 16:29:25 +0200 |
commit | a2689d0747d489c5d6f1b073a829df7d69357bda (patch) | |
tree | 5766084111249223f20337ecfdac5d74af777bd5 /reports.cgi | |
parent | 13408dc745948de52f0dc6f1a3e7080a39289ab4 (diff) | |
download | bugzilla-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-x | reports.cgi | 6 |
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(); } |