From a2689d0747d489c5d6f1b073a829df7d69357bda Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 10 Apr 2014 14:29:25 +0000 Subject: Backout of Bug 990982 - backport bug 539894 to bmo (Use to group products into classifications in the product drop-down on show_bug.cgi) --- reports.cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'reports.cgi') 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(); } -- cgit v1.2.3-24-g4f1b