From cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Tue, 6 Mar 2012 21:55:23 +0100 Subject: 2nd part of bug 731559: fix get_attachments_by_bug() everywhere a=LpSolit --- Bugzilla/Attachment/PatchReader.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Attachment') 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. -- cgit v1.2.3-24-g4f1b