Commit a261aae2 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 460509: Deleting a product with bugs fails because it hasn't loaded Bugzilla::Bug

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 3f8fe270
......@@ -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.
......
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