summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-23 12:41:53 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-23 13:22:27 +0100
commitbab50e0133e226c06b7a968c2bfa46717de81485 (patch)
tree3b96ef986689b8844d05039f86972aec3752ed0b /app
parent703f7c5d579a6ab6d7592c24f8e3f2813d9d1703 (diff)
downloadgitlab-ce-bab50e0133e226c06b7a968c2bfa46717de81485.tar.gz
Preserve time notes has been updated at when moving issue
Diffstat (limited to 'app')
-rw-r--r--app/services/issues/move_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb
index 468f8acdf64..a5efb21fab6 100644
--- a/app/services/issues/move_service.rb
+++ b/app/services/issues/move_service.rb
@@ -54,7 +54,8 @@ module Issues
new_note = note.dup
new_params = { project: @new_project, noteable: @new_issue,
note: unfold_references(new_note.note),
- created_at: note.created_at }
+ created_at: note.created_at,
+ updated_at: note.updated_at }
new_note.update(new_params)
end