summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Product.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-12-19 15:39:28 +0100
committermkanat%bugzilla.org <>2006-12-19 15:39:28 +0100
commitb7c87a7217ea157c1305526e6d62c94d5ef8d36f (patch)
treea942b707cbc40dafc52de0cb8dace9cd7c73e82d /Bugzilla/Product.pm
parent6255b0849421911afd419077f50de44f4ed9a1d8 (diff)
downloadbugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.gz
bugzilla-b7c87a7217ea157c1305526e6d62c94d5ef8d36f.tar.xz
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.pm6
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};
}