summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2014-01-07 06:13:41 +0100
committerDave Lawrence <dlawrence@mozilla.com>2014-01-07 06:13:41 +0100
commit14ece482a9028897f3877e157fdad172f9eeb6eb (patch)
treec0bd56d68740d6c16929bb9f65cd43e49a6e0d0d /Bugzilla/Bug.pm
parent678ad6b0f33fbd05da033ce04f14e14951aa7a9e (diff)
downloadbugzilla-14ece482a9028897f3877e157fdad172f9eeb6eb.tar.gz
bugzilla-14ece482a9028897f3877e157fdad172f9eeb6eb.tar.xz
Bug 956052 - backport upstream bug 945535 to bmo/4.2 for performance improvement in bugs with large number of attachments
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 272526f12..e0b1b603f 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -3254,7 +3254,7 @@ sub attachments {
return [] if $self->{'error'};
$self->{'attachments'} =
- Bugzilla::Attachment->get_attachments_by_bug($self->bug_id, {preload => 1});
+ Bugzilla::Attachment->get_attachments_by_bug($self, {preload => 1});
return $self->{'attachments'};
}