Commit 427520ac537b1d34cc53eb0e8090f68600a21321

Authored by Peter Golm
1 parent 4d7792bc

use the iid to generate the link_to_merge_request_diff_line_note instead of id

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/notes_helper.rb
... ... @@ -17,7 +17,7 @@ module NotesHelper
17 17  
18 18 def link_to_merge_request_diff_line_note(note)
19 19 if note.for_merge_request_diff_line? and note.diff
20   - 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)
  20 + link_to "#{note.diff_file_name}:L#{note.diff_new_line}", diffs_project_merge_request_path(note.project, note.noteable, anchor: note.line_code)
21 21 end
22 22 end
23 23  
... ...