summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authormyk%mozilla.org <>2005-09-01 23:02:26 +0200
committermyk%mozilla.org <>2005-09-01 23:02:26 +0200
commita3cbf5618bb6133f8cd56d8b1d1414fe4c87e469 (patch)
treeaca6a8e5dc4868c72816aa46870408093a8e8538 /Bugzilla/Bug.pm
parenta094f0ebf0294b8f964fc3d93e4d60044af8353e (diff)
downloadbugzilla-a3cbf5618bb6133f8cd56d8b1d1414fe4c87e469.tar.gz
bugzilla-a3cbf5618bb6133f8cd56d8b1d1414fe4c87e469.tar.xz
Partial fix for bug 302669: rewrites Attachment.pm to provide a real Attachment class; r=lpsolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm4
1 files changed, 3 insertions, 1 deletions
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'};
}