summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Product.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm
index bc5c6d926..fdebc6b00 100644
--- a/Bugzilla/Product.pm
+++ b/Bugzilla/Product.pm
@@ -109,7 +109,8 @@ sub preload {
my @prod_ids = keys %prods;
return unless @prod_ids;
- my $dbh = Bugzilla->dbh;
+ # We cannot |use| it due to a dependency loop with Bugzilla::User.
+ require Bugzilla::Component;
foreach my $field (qw(component version milestone)) {
my $classname = "Bugzilla::" . ucfirst($field);
my $objects = $classname->match({ product_id => \@prod_ids });