]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 301446: Changing several bugs at once crashes if the user wants to automatically...
authorlpsolit%gmail.com <>
Thu, 28 Jul 2005 02:43:05 +0000 (02:43 +0000)
committerlpsolit%gmail.com <>
Thu, 28 Jul 2005 02:43:05 +0000 (02:43 +0000)
process_bug.cgi

index 50fde12eb58c02e00c4a1c787bbdc8a185f049ce..2d3be2ff259121f0eb9fd120fb05af64c02d5bed 100755 (executable)
@@ -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;