summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2001-09-18 03:55:31 +0200
committermyk%mozilla.org <>2001-09-18 03:55:31 +0200
commit678c73f7e733bf23d553e94790722dcc6060b2be (patch)
treefbe436d644773c03ac4f588d9575fa854f7959fe /process_bug.cgi
parent7e406183cef64a9c26733ecc9c3d07857eabca68 (diff)
downloadbugzilla-678c73f7e733bf23d553e94790722dcc6060b2be.tar.gz
bugzilla-678c73f7e733bf23d553e94790722dcc6060b2be.tar.xz
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
Diffstat (limited to 'process_bug.cgi')
-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) {