Skip to content
Snippets Groups Projects
Commit 427520ac authored by Peter Golm's avatar Peter Golm
Browse files

use the iid to generate the link_to_merge_request_diff_line_note instead of id

parent 4d7792bc
No related branches found
No related tags found
Loading
Loading
@@ -17,7 +17,7 @@ module NotesHelper
Loading
@@ -17,7 +17,7 @@ module NotesHelper
   
def link_to_merge_request_diff_line_note(note) def link_to_merge_request_diff_line_note(note)
if note.for_merge_request_diff_line? and note.diff if note.for_merge_request_diff_line? and note.diff
link_to "#{note.diff_file_name}:L#{note.diff_new_line}", diffs_project_merge_request_path(note.project, note.noteable_id, anchor: note.line_code) link_to "#{note.diff_file_name}:L#{note.diff_new_line}", diffs_project_merge_request_path(note.project, note.noteable, anchor: note.line_code)
end end
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment