aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-12 06:45:07 +0000
committermkanat%bugzilla.org <>2006-08-12 06:45:07 +0000
commitcc69d134483d1e10423475735b1084535dd075b7 (patch)
tree4e440861d3302bdacea97fd64ae477acf12bd6d8 /editproducts.cgi
parentBug 310753: editflagtypes.cgi page fails w3 validation - Patch by victory(_RS... (diff)
downloadbugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.gz
bugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.bz2
bugzilla-cc69d134483d1e10423475735b1084535dd075b7.zip
Bug 348057: Move the checks for bug visibility out of Bugzilla::Bug->new
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi4
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();
}
}