summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-14 00:43:40 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-14 00:43:40 +0200
commit12eb7b79859d1ee0be9f237d2b097fc4bf42d2c3 (patch)
treee4c668cbd0942de49a14d84a1f06ea13a94b3061 /Bugzilla/Attachment.pm
parente0ee27cff75e9803d026e817439d55221992c493 (diff)
downloadbugzilla-12eb7b79859d1ee0be9f237d2b097fc4bf42d2c3.tar.gz
bugzilla-12eb7b79859d1ee0be9f237d2b097fc4bf42d2c3.tar.xz
Bug 412074: Ability to add attachments to a bug via the WebService
(Bug.add_attachment) r=timello, a=mkanat
Diffstat (limited to 'Bugzilla/Attachment.pm')
-rw-r--r--Bugzilla/Attachment.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm
index 39afe5df1..0f91d29c4 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -838,6 +838,8 @@ sub create {
$sth->bind_param(1, $data, $dbh->BLOB_TYPE);
$sth->execute();
+ $attachment->{bug} = $bug;
+
# Return the new attachment object.
return $attachment;
}