]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 342238: There is a dependency loop between Bugzilla::User and Bugzilla::Component
authormkanat%bugzilla.org <>
Sun, 9 Jul 2006 12:00:20 +0000 (12:00 +0000)
committermkanat%bugzilla.org <>
Sun, 9 Jul 2006 12:00:20 +0000 (12:00 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=myk

Bugzilla/Product.pm

index 5405b1651af74b180ee537165b79d8169149fa5d..e7f33eccea00b12e1f793f517a0e9f493ae08474 100644 (file)
@@ -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);
         }