diff options
author | 2006-12-19 14:39:28 +0000 | |
---|---|---|
committer | 2006-12-19 14:39:28 +0000 | |
commit | b7c87a7217ea157c1305526e6d62c94d5ef8d36f (patch) | |
tree | a942b707cbc40dafc52de0cb8dace9cd7c73e82d /Bugzilla/Product.pm | |
parent | Bug 364065 - "Disabling CC list <select> for logged-out users can make the li... (diff) | |
download | bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.gz bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.bz2 bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.zip |
Bug 339380: Make Bugzilla::Component use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r-- | Bugzilla/Product.pm | 6 |
1 files changed, 1 insertions, 5 deletions
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}; } |