diff options
author | Sean McGivern <sean@gitlab.com> | 2019-04-08 18:33:30 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-04-08 18:33:30 +0300 |
commit | 4317a2a3a2e39e4c2594b0b28abf7a8cc694eeab (patch) | |
tree | b8077805258a7652e08ecce36a5532d40bf03a9c /app/services/system_note_service.rb | |
parent | 425377f35747131bed6550170af576d3028b28f9 (diff) |
Fix `updated_at` doesn't apply to `state_event` updates of issues via API
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r-- | app/services/system_note_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index ea8ac7e4656..acbbb0da929 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -258,7 +258,7 @@ module SystemNoteService body = "created #{issue.to_reference} to continue this discussion" note_attributes = discussion.reply_attributes.merge(project: project, author: author, note: body) - note = Note.create(note_attributes.merge(system: true)) + note = Note.create(note_attributes.merge(system: true, created_at: issue.system_note_timestamp)) note.system_note_metadata = SystemNoteMetadata.new(action: 'discussion') note |