diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-04-16 15:40:25 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-04-16 19:57:49 +0800 |
commit | e0b6838a90b47f34c1109b6a9727f249c6faebca (patch) | |
tree | 42eca4e94f51500019b54f3d04277b1ae1307428 /lib | |
parent | 7994db791ab758d81f7a446eb8e2338336e184fd (diff) | |
download | gitlab-ce-e0b6838a90b47f34c1109b6a9727f249c6faebca.tar.gz |
Set correct timestamps when creating past issues58361-issue-create-system-note-timestamp
Sets `system_note_timestamp` from `created_at`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/issues.rb | 1 |
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) |