Patch for bug 242161: make process_bug.cgi contain patchviewer ("diff") link like show_bug.cgi; patch by GavinS <bugzilla@chimpychompy.org>; r=vladd; a=justdave.

This commit is contained in:
jocuri%softhome.net 2004-06-01 12:53:27 +00:00
parent 9d46d0a1a3
commit f39fb919af

View File

@ -1767,6 +1767,14 @@ if ($next_bug) {
# next.html.tmpl includes edit.html.tmpl, and therefore we
# need $bug defined in $vars.
$vars->{'bug'} = $bug;
# And we need to determine if Patch Viewer is installed, for
# Diff link (NB: Duplicate code with show_bug.cgi.)
eval {
require PatchReader;
$vars->{'patchviewerinstalled'} = 1;
};
$template->process("bug/process/next.html.tmpl", $vars)
|| ThrowTemplateError($template->error());