diff options
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-x | editproducts.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editproducts.cgi b/editproducts.cgi index 432e2a9c6..4c4394926 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -373,7 +373,9 @@ if ($action eq 'delete') { if ($product->bug_count) { if (Bugzilla->params->{"allowbugdeletion"}) { foreach my $bug_id (@{$product->bug_ids}) { - my $bug = new Bugzilla::Bug($bug_id, $whoid); + # Note that we allow the user to delete bugs he can't see, + # which is okay, because he's deleting the whole Product. + my $bug = new Bugzilla::Bug($bug_id); $bug->remove_from_db(); } } |