diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-04-05 21:43:53 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-04-05 21:43:53 +0200 |
commit | 9c9eac99fd7008f2b711a33736f21e5103791a04 (patch) | |
tree | ccb23e98e0a07c8282612b651f011d64658caf33 /process_bug.cgi | |
parent | fcd445919eab36a4b1b1c415e9c20fabb2ec0ac0 (diff) | |
download | bugs-9c9eac99fd7008f2b711a33736f21e5103791a04.tar bugs-9c9eac99fd7008f2b711a33736f21e5103791a04.tar.gz bugs-9c9eac99fd7008f2b711a33736f21e5103791a04.tar.bz2 bugs-9c9eac99fd7008f2b711a33736f21e5103791a04.tar.xz bugs-9c9eac99fd7008f2b711a33736f21e5103791a04.zip |
Bug 1143871: Correctly preload bug data when viewing a bug
r=dkl a=sgreen
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
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; |