From a3cbf5618bb6133f8cd56d8b1d1414fe4c87e469 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Thu, 1 Sep 2005 21:02:26 +0000 Subject: Partial fix for bug 302669: rewrites Attachment.pm to provide a real Attachment class; r=lpsolit --- Bugzilla/Bug.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index c287d0c0c..dfa419316 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -354,7 +354,9 @@ sub attachments { my ($self) = @_; return $self->{'attachments'} if exists $self->{'attachments'}; return [] if $self->{'error'}; - $self->{'attachments'} = Bugzilla::Attachment::query($self->{bug_id}); + + $self->{'attachments'} = + Bugzilla::Attachment->get_attachments_by_bug($self->bug_id); return $self->{'attachments'}; } -- cgit v1.2.3-24-g4f1b