summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment.pm
diff options
context:
space:
mode:
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;
}