From 0ff778c0f4a3b599d0f36a1deee5607d03e52b9a Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Tue, 21 Apr 2015 15:19:23 +0200 Subject: Link cross-project cross-reference notes to correct project. --- app/services/notes/create_service.rb | 2 +- app/services/notes/update_service.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'app/services/notes') diff --git a/app/services/notes/create_service.rb b/app/services/notes/create_service.rb index e969061f229..d19a6c2eca3 100644 --- a/app/services/notes/create_service.rb +++ b/app/services/notes/create_service.rb @@ -15,7 +15,7 @@ module Notes # Create a cross-reference note if this Note contains GFM that names an # issue, merge request, or commit. note.references.each do |mentioned| - Note.create_cross_reference_note(mentioned, note.noteable, note.author, note.project) + Note.create_cross_reference_note(mentioned, note.noteable, note.author) end execute_hooks(note) diff --git a/app/services/notes/update_service.rb b/app/services/notes/update_service.rb index 63431b82471..45a0db761ec 100644 --- a/app/services/notes/update_service.rb +++ b/app/services/notes/update_service.rb @@ -13,8 +13,7 @@ module Notes # Create a cross-reference note if this Note contains GFM that # names an issue, merge request, or commit. note.references.each do |mentioned| - Note.create_cross_reference_note(mentioned, note.noteable, - note.author, note.project) + Note.create_cross_reference_note(mentioned, note.noteable, note.author) end end end -- cgit v1.2.1