Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-03-23 16:11:27 +0300
committerDouwe Maan <douwe@gitlab.com>2016-03-23 16:11:27 +0300
commit6c4d6dd684b30b1b0ca30249e2c3a43e67ee3143 (patch)
treefa92369586ff6c67b59422e4bd3681de6d8cdb49 /app
parent7124e5a44c045dae511c0cac65c936b445c1a5b6 (diff)
parent85b9d763f17e4f8a24610684b570ae02bf0f7522 (diff)
Merge branch 'fix/issue-move-preserve-update-time' into 'master'
Preserve time notes has been updated at when moving issue Closes #14490 See merge request !3356
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