From b7c87a7217ea157c1305526e6d62c94d5ef8d36f Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 19 Dec 2006 14:39:28 +0000 Subject: Bug 339380: Make Bugzilla::Component use Bugzilla::Object Patch By Max Kanat-Alexander r=LpSolit, a=myk --- Bugzilla/Product.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Bugzilla/Product.pm') diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 4edc7ef85..465d12515 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -65,12 +65,8 @@ sub components { WHERE product_id = ? ORDER BY name}, undef, $self->id); - my @components; require Bugzilla::Component; - foreach my $id (@$ids) { - push @components, new Bugzilla::Component($id); - } - $self->{components} = \@components; + $self->{components} = Bugzilla::Component->new_from_list($ids); } return $self->{components}; } -- cgit v1.2.3-24-g4f1b