diff options
author | Sean McGivern <sean@gitlab.com> | 2017-07-27 17:36:39 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-07-28 18:25:13 +0300 |
commit | 75d04f6a29a5506ffd53c227517411febdc54910 (patch) | |
tree | 9e1234843c638abe5e34299d21348c5bf885a5ec /app/views/shared/notes | |
parent | 9981814514742a2ee507d4dcc2fd71099fd96585 (diff) |
Fix replying to commit comments on MRs from forks
A commit comment shows in the MR, but if the MR is from a fork, it will have a
different project ID to the MR's target project. In that case, add an
note_project_id param so that we can pick the correct project for the note.
Diffstat (limited to 'app/views/shared/notes')
-rw-r--r-- | app/views/shared/notes/_form.html.haml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/shared/notes/_form.html.haml b/app/views/shared/notes/_form.html.haml index c6b5dcc3647..725bf916592 100644 --- a/app/views/shared/notes/_form.html.haml +++ b/app/views/shared/notes/_form.html.haml @@ -10,6 +10,7 @@ = hidden_field_tag :line_type = hidden_field_tag :merge_request_diff_head_sha, @note.noteable.try(:diff_head_sha) = hidden_field_tag :in_reply_to_discussion_id + = hidden_field_tag :note_project_id = note_target_fields(@note) = f.hidden_field :noteable_type |