summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-31 06:42:12 +0100
committerlpsolit%gmail.com <>2005-10-31 06:42:12 +0100
commitaac2ea969174d3d6d62d89b49e5c002cdc4f6a02 (patch)
tree977484c46d0e4ef3dcfcddadeaa4a008e959891e /editproducts.cgi
parent1254fcb8c43defcbce99713f5cd85a104670895e (diff)
downloadbugzilla-aac2ea969174d3d6d62d89b49e5c002cdc4f6a02.tar.gz
bugzilla-aac2ea969174d3d6d62d89b49e5c002cdc4f6a02.tar.xz
Bug 153445: Do not display bug counts by default when listing products in editproducts.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=GavinS a=justdave
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi10
1 files changed, 5 insertions, 5 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index 7b2123697..b4007a2f4 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -53,6 +53,7 @@ use vars qw(@legal_bug_status @legal_resolution);
my $user = Bugzilla->login(LOGIN_REQUIRED);
my $whoid = $user->id;
+my $dbh = Bugzilla->dbh;
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
my $vars = {};
@@ -70,7 +71,7 @@ $user->in_group('editcomponents')
my $classification_name = trim($cgi->param('classification') || '');
my $product_name = trim($cgi->param('product') || '');
my $action = trim($cgi->param('action') || '');
-my $dbh = Bugzilla->dbh;
+my $showbugcounts = (defined $cgi->param('showbugcounts'));
#
# product = '' -> Show nice list of classifications (if
@@ -112,12 +113,11 @@ if (!$action && !$product_name) {
@products = Bugzilla::Product::get_all_products;
}
- $vars->{'products'} = \@products;
+ $vars->{'products'} = \@products;
+ $vars->{'showbugcounts'} = $showbugcounts;
- $template->process("admin/products/list.html.tmpl",
- $vars)
+ $template->process("admin/products/list.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
-
exit;
}