diff options
-rwxr-xr-x | process_bug.cgi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index c79930464..e504fd7ea 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1749,6 +1749,9 @@ if ($next_bug) { my $bug = new Bug($next_bug, $::userid); ThrowCodeError("bug_error", { bug => $bug }) if $bug->error; + # next.html.tmpl includes edit.html.tmpl, and therefore we + # need $bug defined in $vars. + $vars->{'bug'} = $bug; $template->process("bug/process/next.html.tmpl", $vars) || ThrowTemplateError($template->error()); |