From a261aae25d79d1eb642bf2f9e786dcc793a4f105 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 18 Oct 2008 21:14:02 +0000 Subject: Bug 460509: Deleting a product with bugs fails because it hasn't loaded Bugzilla::Bug Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/Product.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla') diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 8fb7b7ca9..7a560a3e6 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -374,6 +374,7 @@ sub remove_from_db { if ($self->bug_count) { if (Bugzilla->params->{'allowbugdeletion'}) { + require Bugzilla::Bug; foreach my $bug_id (@{$self->bug_ids}) { # Note that we allow the user to delete bugs he can't see, # which is okay, because he's deleting the whole Product. -- cgit v1.2.3-24-g4f1b