summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-04-05 21:38:15 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-04-05 21:38:15 +0200
commit0d95dec384fc94b6ebaa5158a579aa099574cd59 (patch)
tree667102d1d2938f8a3fa1023e58b12eced2059c65 /process_bug.cgi
parentc785e6092b5061e7aee51ab2ec3607de444cb4c9 (diff)
downloadbugzilla-0d95dec384fc94b6ebaa5158a579aa099574cd59.tar.gz
bugzilla-0d95dec384fc94b6ebaa5158a579aa099574cd59.tar.xz
Bug 1143871: Correctly preload bug data when viewing a bug
r=dkl a=sgreen
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi4
1 files changed, 4 insertions, 0 deletions
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;