From 251d436a31f7c4b998e8c8e5e6c353ec405cadc8 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 28 Jul 2005 02:43:05 +0000 Subject: 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 --- process_bug.cgi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 50fde12eb..2d3be2ff2 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; -- cgit v1.2.3-24-g4f1b