summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-03-06 21:55:23 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-03-06 21:55:23 +0100
commitcc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3 (patch)
treea038a9e6b8a3e9a91311c093f690f5ec76ac9a12 /Bugzilla/Attachment
parent272f38031430bbe94d74019d9112ac8ba01d9d42 (diff)
downloadbugzilla-cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3.tar.gz
bugzilla-cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3.tar.xz
2nd part of bug 731559: fix get_attachments_by_bug() everywhere
a=LpSolit
Diffstat (limited to 'Bugzilla/Attachment')
-rw-r--r--Bugzilla/Attachment/PatchReader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Attachment/PatchReader.pm b/Bugzilla/Attachment/PatchReader.pm
index 9b2d9f15c..3be0555c1 100644
--- a/Bugzilla/Attachment/PatchReader.pm
+++ b/Bugzilla/Attachment/PatchReader.pm
@@ -37,7 +37,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.