aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-09-10 23:00:16 +0800
committerByron Jones <glob@mozilla.com>2014-09-10 23:00:16 +0800
commit02c6a481ed267c7f35af46fa61402a9ce7789484 (patch)
tree6763608f5acf9dc8484da18e10b0120dbbe5729c
parentBug 1036242: "TypeError: bug_status is undefined" when creating a bug (diff)
downloadbugzilla-02c6a481ed267c7f35af46fa61402a9ce7789484.tar.gz
bugzilla-02c6a481ed267c7f35af46fa61402a9ce7789484.tar.bz2
bugzilla-02c6a481ed267c7f35af46fa61402a9ce7789484.zip
Bug 1035080: preload visibility of referenced bugs in _preload_referenced_bugs
r=sgreen,a=sgreen
-rw-r--r--Bugzilla/Bug.pm3
1 files changed, 3 insertions, 0 deletions
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 {