From: lpsolit%gmail.com <> Date: Thu, 28 Jul 2005 02:43:05 +0000 (+0000) Subject: Bug 301446: Changing several bugs at once crashes if the user wants to automatically... X-Git-Tag: bugzilla-2.21.1~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=251d436a31f7c4b998e8c8e5e6c353ec405cadc8;p=thirdparty%2Fbugzilla.git Bug 301446: Changing several bugs at once crashes if the user wants to automatically redisplay the bug he changed - Patch by byron jones (glob) r=LpSolit a=myk --- diff --git a/process_bug.cgi b/process_bug.cgi index 50fde12eb5..2d3be2ff25 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -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;