Commit 272f3803 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 732978: preload() must load Bugzilla::Component itself

r=dkl a=LpSolit
parent 62ee1dc6
......@@ -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 });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment