diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2014-01-07 06:13:41 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2014-01-07 06:13:41 +0100 |
commit | 14ece482a9028897f3877e157fdad172f9eeb6eb (patch) | |
tree | c0bd56d68740d6c16929bb9f65cd43e49a6e0d0d /Bugzilla/Attachment | |
parent | 678ad6b0f33fbd05da033ce04f14e14951aa7a9e (diff) | |
download | bugzilla-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/Attachment')
-rw-r--r-- | Bugzilla/Attachment/PatchReader.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Attachment/PatchReader.pm b/Bugzilla/Attachment/PatchReader.pm index 7c5dfc470..1ab14f386 100644 --- a/Bugzilla/Attachment/PatchReader.pm +++ b/Bugzilla/Attachment/PatchReader.pm @@ -49,7 +49,7 @@ sub process_diff { if ($lc->{interdiffbin} && $lc->{diffpath}) { # Get the list of attachments that the user can view in this bug. my @attachments = - @{Bugzilla::Attachment->get_attachments_by_bug($attachment->bug_id)}; + @{Bugzilla::Attachment->get_attachments_by_bug($attachment->bug)}; # Extract patches only. @attachments = grep {$_->ispatch == 1} @attachments; # We want them sorted from newer to older. |