From 717b3b5c982957c28275b0c177ed56536b93303c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 23 Nov 2009 22:40:54 +0000 Subject: [PATCH] =?utf8?q?Bug=20529863:=20The=20product=20list=20when=20li?= =?utf8?q?sting=20all=20flagtypes=20in=20editflagtypes.cgi=20is=20empty=20?= =?utf8?q?after=20editing=20them=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83?= =?utf8?q?=C2=A9ric=20Buclin=20=20r=3Dghendricks=20a=3D?= =?utf8?q?LpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- editflagtypes.cgi | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/editflagtypes.cgi b/editflagtypes.cgi index b730ae2e56..4f85e6c65e 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -47,6 +47,9 @@ local our $cgi = Bugzilla->cgi; local our $template = Bugzilla->template; local our $vars = {}; +# We need this everywhere. +$vars = get_products_and_components($vars); + # Make sure the user is logged in and is an administrator. my $user = Bugzilla->login(LOGIN_REQUIRED); $user->in_group('editcomponents') @@ -93,9 +96,6 @@ exit; ################################################################################ sub list { - # Restrict the list to the given product and component, if given. - $vars = get_products_and_components($vars); - my $product = validateProduct(scalar $cgi->param('product')); my $component = validateComponent($product, scalar $cgi->param('component')); my $product_id = $product ? $product->id : 0; @@ -178,9 +178,6 @@ sub edit { $flag_type = validateID(); } - # Fill $vars with products and components data. - $vars = get_products_and_components($vars); - $vars->{'last_action'} = $cgi->param('action'); if ($cgi->param('action') eq 'enter' || $cgi->param('action') eq 'copy') { $vars->{'action'} = "insert"; @@ -252,9 +249,6 @@ sub processCategoryChange { my %inclusions = clusion_array_to_hash(\@inclusions); my %exclusions = clusion_array_to_hash(\@exclusions); - # Fill $vars with products and components data. - $vars = get_products_and_components($vars); - my @groups = Bugzilla::Group->get_all; $vars->{'groups'} = \@groups; $vars->{'action'} = $cgi->param('action'); -- 2.47.3