Bug 301446: Changing several bugs at once crashes if the user wants to automatically redisplay the bug he changed - Patch by byron jones (glob) <bugzilla@glob.com.au> r=LpSolit a=myk

This commit is contained in:
lpsolit%gmail.com 2005-07-27 19:43:05 +00:00
Родитель eb49fa8f3a
Коммит c620333dbe
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -1826,7 +1826,12 @@ eval {
$vars->{'patchviewerinstalled'} = 1;
};
$action = Bugzilla->user->settings->{'post_bug_submit_action'}->{'value'};
if (defined $cgi->param('id')) {
$action = Bugzilla->user->settings->{'post_bug_submit_action'}->{'value'};
} else {
# param('id') is not defined when changing multiple bugs
$action = 'nothing';
}
if ($action eq 'next_bug') {
my $next_bug;