From: mkanat%bugzilla.org <> Date: Sun, 9 Jul 2006 12:00:20 +0000 (+0000) Subject: Bug 342238: There is a dependency loop between Bugzilla::User and Bugzilla::Component X-Git-Tag: bugzilla-2.23.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdc7464e8802b5e1c9fd2f80dd29f36e20ac9774;p=thirdparty%2Fbugzilla.git Bug 342238: There is a dependency loop between Bugzilla::User and Bugzilla::Component Patch By Max Kanat-Alexander r=bkor, a=myk --- diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 5405b1651a..e7f33eccea 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -18,7 +18,6 @@ use strict; package Bugzilla::Product; -use Bugzilla::Component; use Bugzilla::Version; use Bugzilla::Milestone; @@ -107,6 +106,7 @@ sub components { ORDER BY name}, undef, $self->id); my @components; + require Bugzilla::Component; foreach my $id (@$ids) { push @components, new Bugzilla::Component($id); }