From 96c07aa8e5b598b60cee425bf3385773796a94f2 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 22 Oct 2008 02:55:45 +0000 Subject: Bug 347991: Classifications without products don't show up in editproducts.cgi - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editproducts.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index e3af7986e..fcca94838 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -80,8 +80,9 @@ if (Bugzilla->params->{'useclassification'} && !$classification_name && !$product_name) { - $vars->{'classifications'} = $user->get_selectable_classifications; - + $vars->{'classifications'} = $user->in_group('editcomponents') ? + [Bugzilla::Classification::get_all_classifications] : $user->get_selectable_classifications; + $template->process("admin/products/list-classifications.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; @@ -231,7 +232,8 @@ if ($action eq 'delete') { $vars->{'no_edit_product_link'} = 1; if (Bugzilla->params->{'useclassification'}) { - $vars->{'classifications'} = $user->get_selectable_classifications; + $vars->{'classifications'} = $user->in_group('editcomponents') ? + [Bugzilla::Classification::get_all_classifications] : $user->get_selectable_classifications; $template->process("admin/products/list-classifications.html.tmpl", $vars) || ThrowTemplateError($template->error()); -- cgit v1.2.3-24-g4f1b