From 9c9eac99fd7008f2b711a33736f21e5103791a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Sun, 5 Apr 2015 21:43:53 +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 fbd302974..b3ed2d36a 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -406,6 +406,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.1