From: Byron Jones Date: Wed, 10 Sep 2014 15:00:16 +0000 (+0800) Subject: Bug 1035080: preload visibility of referenced bugs in _preload_referenced_bugs X-Git-Tag: bugzilla-4.5.6~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c6a481ed267c7f35af46fa61402a9ce7789484;p=thirdparty%2Fbugzilla.git Bug 1035080: preload visibility of referenced bugs in _preload_referenced_bugs r=sgreen,a=sgreen --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 223ca1ae00..e7e4e898b4 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -555,6 +555,9 @@ sub _preload_referenced_bugs { foreach my $bug (@$referenced_bugs) { $bug->object_cache_set(); } + + # preload bug visibility + Bugzilla->user->visible_bugs(\@referenced_bug_ids); } sub possible_duplicates {