Commit 678c73f7 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix for bug 90333: Bugzilla now displays an appropriate error message if a user…

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
parent 7e406183
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment