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/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-04-17 00:02:03 +0300
committerStan Hu <stanhu@gmail.com>2019-04-17 00:02:03 +0300
commitb0c0f81d549165e69ca871f94ed0154e30a8970c (patch)
treed1da2b13eeaf2f7a7b6391e0b7b5dbd476d2f722 /lib
parent6f539ccbe97edab5d9e8d09f66fb7f6591de7729 (diff)
parente0b6838a90b47f34c1109b6a9727f249c6faebca (diff)
Merge branch '58361-issue-create-system-note-timestamp' into 'master'
Set correct timestamps when creating past issues Closes #58361 See merge request gitlab-org/gitlab-ce!27406
Diffstat (limited to 'lib')
-rw-r--r--lib/api/issues.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb
index 000c00ea9f9..d0a93b77951 100644
--- a/lib/api/issues.rb
+++ b/lib/api/issues.rb
@@ -192,6 +192,7 @@ module API
params.delete(:iid) unless current_user.can?(:set_issue_iid, user_project)
issue_params = declared_params(include_missing: false)
+ issue_params[:system_note_timestamp] = params[:created_at]
issue_params = convert_parameters_from_legacy_format(issue_params)