From 0d95dec384fc94b6ebaa5158a579aa099574cd59 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sun, 5 Apr 2015 21:38:15 +0200 Subject: Bug 1143871: Correctly preload bug data when viewing a bug r=dkl a=sgreen --- process_bug.cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 448b42c40..a39f0cc45 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -412,6 +412,10 @@ elsif ($action eq 'next_bug' or $action eq 'same_bug') { if ($action eq 'next_bug') { $vars->{'nextbug'} = $bug->id; } + # For performance reasons, preload visibility of dependencies + # and duplicates related to this bug. + Bugzilla::Bug->preload([$bug]); + $template->process("bug/show.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; -- cgit v1.2.3-24-g4f1b