summaryrefslogtreecommitdiff
path: root/app/services/notes/update_service.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-28 13:09:51 +0100
committerDouwe Maan <douwe@gitlab.com>2015-10-28 13:09:51 +0100
commitaaa93d5add41661b657c3a684e23c4084f6292b5 (patch)
tree65a0efc5bbc289a40f0970d27073f9a4d816959f /app/services/notes/update_service.rb
parent940d68cc4c349b574166b010666a36cf25f485b7 (diff)
downloadgitlab-ce-aaa93d5add41661b657c3a684e23c4084f6292b5.tar.gz
Use issue editor as cross reference comment author when issue is edited with a new mention.edit-new-cross-references
Diffstat (limited to 'app/services/notes/update_service.rb')
-rw-r--r--app/services/notes/update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notes/update_service.rb b/app/services/notes/update_service.rb
index 6c2f08e5963..72e2f78008d 100644
--- a/app/services/notes/update_service.rb
+++ b/app/services/notes/update_service.rb
@@ -4,7 +4,7 @@ module Notes
return note unless note.editable?
note.update_attributes(params.merge(updated_by: current_user))
- note.create_new_cross_references!
+ note.create_new_cross_references!(current_user)
note.reset_events_cache
note