diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-20 17:05:21 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-20 17:05:21 +0100 |
commit | d6474f22d263e5c04318c64979dfec3f7f45b7bc (patch) | |
tree | bc3cc689c9d05a7d4e025f81c74b25839011f68a /app | |
parent | 797af06491b8e9bbc7eb75466b0cf3fabd0f14d8 (diff) | |
download | gitlab-ce-d6474f22d263e5c04318c64979dfec3f7f45b7bc.tar.gz |
Preserve created at time of notes when moving issue
Diffstat (limited to 'app')
-rw-r--r-- | app/services/issues/move_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb index c5b2bf80e0b..3cfbafe1576 100644 --- a/app/services/issues/move_service.rb +++ b/app/services/issues/move_service.rb @@ -53,7 +53,8 @@ module Issues @old_issue.notes.find_each do |note| new_note = note.dup new_params = { project: @new_project, noteable: @new_issue, - note: unfold_references(new_note.note) } + note: unfold_references(new_note.note), + created_at: note.created_at } new_note.update(new_params) end |