From af7d21349fe822fc6517cab76b37bed3e8caeebe Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Fri, 7 Oct 2005 01:45:46 +0000 Subject: Bug 309749: Remove get_x_by_y functions from the new .pm files, in favor of object methods Patch By André Batosti r=LpSolit, a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editcomponents.cgi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index 096570d82..5b5333e31 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -92,12 +92,9 @@ my $product = Bugzilla::Product::check_product($product_name); unless ($action) { - my @components = - Bugzilla::Component::get_components_by_product($product->id); - $vars->{'showbugcounts'} = $showbugcounts; $vars->{'product'} = $product->name; - $vars->{'components'} = \@components; + $vars->{'components'} = $product->components; $template->process("admin/components/list.html.tmpl", $vars) || ThrowTemplateError($template->error()); -- cgit v1.2.3-24-g4f1b