From: lpsolit%gmail.com <> Date: Thu, 10 May 2007 16:03:21 +0000 (+0000) Subject: Bug 366346: On process_bug.cgi with submit_action=nothing, provide Next/Prev link... X-Git-Tag: bugzilla-3.1.2~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3951e2cb57cafacba6605949beb54e105f69d527;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 b2dd8c6bd1..55e65d2a97 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -2082,6 +2082,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)