summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-10-18 23:14:02 +0200
committermkanat%bugzilla.org <>2008-10-18 23:14:02 +0200
commita261aae25d79d1eb642bf2f9e786dcc793a4f105 (patch)
treeaa18ff7e75061729fd9b438772046732c01b0b66 /Bugzilla
parent3f8fe270407b35a2f123074e61fe87720c5e994b (diff)
downloadbugzilla-a261aae25d79d1eb642bf2f9e786dcc793a4f105.tar.gz
bugzilla-a261aae25d79d1eb642bf2f9e786dcc793a4f105.tar.xz
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
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Product.pm1
1 files changed, 1 insertions, 0 deletions
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.