diff options
author | myk%mozilla.org <> | 2001-09-18 03:55:31 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2001-09-18 03:55:31 +0200 |
commit | 678c73f7e733bf23d553e94790722dcc6060b2be (patch) | |
tree | fbe436d644773c03ac4f588d9575fa854f7959fe /process_bug.cgi | |
parent | 7e406183cef64a9c26733ecc9c3d07857eabca68 (diff) | |
download | bugzilla-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-x | process_bug.cgi | 5 |
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) { |