aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormyk%mozilla.org <>2001-09-18 01:55:31 +0000
committermyk%mozilla.org <>2001-09-18 01:55:31 +0000
commit678c73f7e733bf23d553e94790722dcc6060b2be (patch)
treefbe436d644773c03ac4f588d9575fa854f7959fe
parent7e406183cef64a9c26733ecc9c3d07857eabca68 (diff)
downloadbugs-678c73f7e733bf23d553e94790722dcc6060b2be.tar
bugs-678c73f7e733bf23d553e94790722dcc6060b2be.tar.gz
bugs-678c73f7e733bf23d553e94790722dcc6060b2be.tar.bz2
bugs-678c73f7e733bf23d553e94790722dcc6060b2be.tar.xz
bugs-678c73f7e733bf23d553e94790722dcc6060b2be.zip
Fix for bug 90333: Bugzilla now displays an appropriate error message if a user hits process_bug.cgi without specifying any bugs to change.
Patch by Myk Melez <myk@mozilla.org> r=jake@acutex.net
-rwxr-xr-xprocess_bug.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 0baadda9a..1d2bd8898 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -68,6 +68,11 @@ if (defined $::FORM{'id'}) {
}
}
+# Make sure there are bugs to process.
+scalar(@idlist)
+ || DisplayError("You did not select any bugs to modify.")
+ && exit;
+
# For each bug being modified, make sure its ID is a valid bug number
# representing an existing bug that the user is authorized to access.
foreach my $id (@idlist) {