summaryrefslogtreecommitdiff
path: root/app/services/notes
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-23 06:09:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-23 06:09:19 +0000
commit6520b1366e604be8c9c43f36159ecd6a5284a2b0 (patch)
tree2b8751bfd31e32663db93494525b3caca67e054f /app/services/notes
parentf8454d351eb238ae9898fb7bd67013fe8e93d0db (diff)
downloadgitlab-ce-6520b1366e604be8c9c43f36159ecd6a5284a2b0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/notes')
-rw-r--r--app/services/notes/quick_actions_service.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/notes/quick_actions_service.rb b/app/services/notes/quick_actions_service.rb
index c670f01e502..36d9f1d7867 100644
--- a/app/services/notes/quick_actions_service.rb
+++ b/app/services/notes/quick_actions_service.rb
@@ -50,6 +50,11 @@ module Notes
return if update_params.empty?
return unless supported?(note)
+ # We need the `id` after the note is persisted
+ if update_params[:spend_time]
+ update_params[:spend_time][:note_id] = note.id
+ end
+
self.class.noteable_update_service(note).new(note.resource_parent, current_user, update_params).execute(note.noteable)
end
end