Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use the iid to generate the link_to_merge_request_diff_line_note inst…

…ead of id
  • Loading branch information...
commit 427520ac537b1d34cc53eb0e8090f68600a21321 1 parent 4d7792b
Peter Golm pgolm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/helpers/notes_helper.rb
2  app/helpers/notes_helper.rb
View
@@ -17,7 +17,7 @@ def link_to_commit_diff_line_note(note)
def link_to_merge_request_diff_line_note(note)
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
Please sign in to comment.
Something went wrong with that request. Please try again.