aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-10-07 01:45:46 +0000
committermkanat%kerio.com <>2005-10-07 01:45:46 +0000
commitaf7d21349fe822fc6517cab76b37bed3e8caeebe (patch)
treea4f6380ad76f3ec2fe0fc0cf7545189a611f7085 /editcomponents.cgi
parentBug 309680: Use SQL "JOIN ... ON ..." syntax instead of "JOIN ... USING(...)" (diff)
downloadbugzilla-af7d21349fe822fc6517cab76b37bed3e8caeebe.tar.gz
bugzilla-af7d21349fe822fc6517cab76b37bed3e8caeebe.tar.bz2
bugzilla-af7d21349fe822fc6517cab76b37bed3e8caeebe.zip
Bug 309749: Remove get_x_by_y functions from the new .pm files, in favor of object methods
Patch By André Batosti <batosti@async.com.br> r=LpSolit, a=justdave
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi5
1 files changed, 1 insertions, 4 deletions
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());