summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-03-05 18:04:28 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-03-05 18:04:28 +0100
commit272f38031430bbe94d74019d9112ac8ba01d9d42 (patch)
tree78ece8a1d6558cf625aee832da0e850c4221e722 /Bugzilla
parent62ee1dc62640cc82b5ca520a2c118583b8d7e9ed (diff)
downloadbugzilla-272f38031430bbe94d74019d9112ac8ba01d9d42.tar.gz
bugzilla-272f38031430bbe94d74019d9112ac8ba01d9d42.tar.xz
Bug 732978: preload() must load Bugzilla::Component itself
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla')
-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 });