зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
232b3ee364
Коммит
fba452acb3
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче