diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-06-08 17:53:38 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-06-08 17:53:38 +0200 |
commit | d14bd9c49a255db03a57ba193870edfd8968812f (patch) | |
tree | 54c4d79ccbf31a94a14eeb7fe3fe25b124271891 | |
parent | 286e6789c1a6f59535e25e020ecbb45d0857ea11 (diff) | |
download | bugzilla-d14bd9c49a255db03a57ba193870edfd8968812f.tar.gz bugzilla-d14bd9c49a255db03a57ba193870edfd8968812f.tar.xz |
Migrate: Create comments for attachmentsharmony-unstable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | Bugzilla/Migrate.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Migrate.pm b/Bugzilla/Migrate.pm index ccd6b6e12..3bdc92df1 100644 --- a/Bugzilla/Migrate.pm +++ b/Bugzilla/Migrate.pm @@ -869,6 +869,12 @@ sub _insert_attachments { Bugzilla->set_user($submitter); my $created = Bugzilla::Attachment->create({ %$attachment, bug => $bug }); + $self->_insert_comments($bug, [{ + type => CMT_ATTACHMENT_CREATED, + extra_data => $created->id, + who => $created->attacher->login, + bug_when => $created->attached, + }]); $self->debug(' Attachment ' . $created->description . ' from ' . $submitter->login, 2); Bugzilla->set_user($super_user); |