From 02c6a481ed267c7f35af46fa61402a9ce7789484 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 10 Sep 2014 23:00:16 +0800 Subject: Bug 1035080: preload visibility of referenced bugs in _preload_referenced_bugs r=sgreen,a=sgreen --- Bugzilla/Bug.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 223ca1ae0..e7e4e898b 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 { -- cgit v1.2.3-24-g4f1b