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

git-svn-id: svn://10.0.0.236/trunk@176693 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lpsolit%gmail.com
2005-07-27 19:43:05 +00:00
parent 1fe5b8d1f8
commit e730569c9a

View File

@@ -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;