]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 460509: Deleting a product with bugs fails because it hasn't loaded Bugzilla...
authormkanat%bugzilla.org <>
Sat, 18 Oct 2008 21:14:02 +0000 (21:14 +0000)
committermkanat%bugzilla.org <>
Sat, 18 Oct 2008 21:14:02 +0000 (21:14 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/Product.pm

index 8fb7b7ca9a3c3a0e1f9aedd0cd19a35dbc59d574..7a560a3e6f9a3606eff2580e3e6257465c355779 100644 (file)
@@ -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.