diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-12-11 11:54:50 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-12-19 23:54:54 +0100 |
commit | 795b4a307f5e03714e022978a0a0f14a47a23eb4 (patch) | |
tree | 7680927d9bd3a08c2c6388666364026c04e9fc2d /app/helpers | |
parent | 6aed2212bd82ca09780b2a1dc686fae20dc78dac (diff) | |
download | gitlab-ce-795b4a307f5e03714e022978a0a0f14a47a23eb4.tar.gz |
Link to specific commit note from MR commit discussion link
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/notes_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb index 033686823a2..293dd20ad49 100644 --- a/app/helpers/notes_helper.rb +++ b/app/helpers/notes_helper.rb @@ -85,7 +85,7 @@ module NotesHelper diffs_project_merge_request_path(discussion.project, discussion.noteable, path_params) elsif discussion.for_commit? - anchor = discussion.line_code if discussion.diff_discussion? + anchor = discussion.diff_discussion? ? discussion.line_code : "note_#{discussion.first_note.id}" project_commit_path(discussion.project, discussion.noteable, anchor: anchor) end |