]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 90333: Bugzilla now displays an appropriate error message if a user hits...
authormyk%mozilla.org <>
Tue, 18 Sep 2001 01:55:31 +0000 (01:55 +0000)
committermyk%mozilla.org <>
Tue, 18 Sep 2001 01:55:31 +0000 (01:55 +0000)
Patch by Myk Melez <myk@mozilla.org>
r=jake@acutex.net

process_bug.cgi

index 0baadda9aca36e92cf4e2935ff2dd72ec582a6ec..1d2bd8898ad18c0fe85153b80fe66ba5dec9bd3b 100755 (executable)
@@ -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) {