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
This commit is contained in:
myk%mozilla.org 2001-09-17 18:55:31 +00:00
Родитель 232b3ee364
Коммит fba452acb3
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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) {