From: mkanat%bugzilla.org <> Date: Sat, 18 Oct 2008 21:14:02 +0000 (+0000) Subject: Bug 460509: Deleting a product with bugs fails because it hasn't loaded Bugzilla... X-Git-Tag: bugzilla-3.3.1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a261aae25d79d1eb642bf2f9e786dcc793a4f105;p=thirdparty%2Fbugzilla.git Bug 460509: Deleting a product with bugs fails because it hasn't loaded Bugzilla::Bug Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 8fb7b7ca9a..7a560a3e6f 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.