diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-06 21:55:23 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-06 21:55:23 +0100 |
commit | cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3 (patch) | |
tree | a038a9e6b8a3e9a91311c093f690f5ec76ac9a12 /attachment.cgi | |
parent | 272f38031430bbe94d74019d9112ac8ba01d9d42 (diff) | |
download | bugs-cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3.tar bugs-cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3.tar.gz bugs-cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3.tar.bz2 bugs-cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3.tar.xz bugs-cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3.zip |
2nd part of bug 731559: fix get_attachments_by_bug() everywhere
a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi index 69a69c7fd..2bc6e5454 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -427,9 +427,8 @@ sub diff { sub viewall { # Retrieve and validate parameters my $bug = Bugzilla::Bug->check(scalar $cgi->param('bugid')); - my $bugid = $bug->id; - my $attachments = Bugzilla::Attachment->get_attachments_by_bug($bugid); + my $attachments = Bugzilla::Attachment->get_attachments_by_bug($bug); # Ignore deleted attachments. @$attachments = grep { $_->datasize } @$attachments; @@ -605,7 +604,7 @@ sub edit { my $attachment = validateID(); my $bugattachments = - Bugzilla::Attachment->get_attachments_by_bug($attachment->bug_id); + Bugzilla::Attachment->get_attachments_by_bug($attachment->bug); # We only want attachment IDs. @$bugattachments = map { $_->id } @$bugattachments; |