From: lpsolit%gmail.com <> Date: Thu, 10 May 2007 16:05:08 +0000 (+0000) Subject: Bug 366346: On process_bug.cgi with submit_action=nothing, provide Next/Prev link... X-Git-Tag: bugzilla-3.0.1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27da944e07b36e052dda163f8cc195d1d56d645d;p=thirdparty%2Fbugzilla.git Bug 366346: On process_bug.cgi with submit_action=nothing, provide Next/Prev link - Patch by Frédéric Buclin r=wicked a=LpSolit --- diff --git a/process_bug.cgi b/process_bug.cgi index ffca2fab4a..0658b7e3bf 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -2215,6 +2215,9 @@ elsif ($action eq 'next_bug') { # End the response page. unless (Bugzilla->usage_mode == USAGE_MODE_EMAIL) { + # The user pref is 'Do nothing', so all we need is the current bug ID. + $vars->{'bug'} = {bug_id => scalar $cgi->param('id')}; + $template->process("bug/navigate.html.tmpl", $vars) || ThrowTemplateError($template->error()); $template->process("global/footer.html.tmpl", $vars)