diff options
author | micael.bergeron <micaelbergeron@gmail.com> | 2017-11-14 11:48:40 -0500 |
---|---|---|
committer | micael.bergeron <micaelbergeron@gmail.com> | 2017-12-07 09:01:23 -0500 |
commit | 6b3f0fee151283348b44a69342ec1a6738cd2de0 (patch) | |
tree | 98f7483a9b5d98d152e268785460d765f1995d13 /app/services | |
parent | e35656318a0ef78a3a4b5257298201fbefe4fbfa (diff) | |
download | gitlab-ce-6b3f0fee151283348b44a69342ec1a6738cd2de0.tar.gz |
corrects the url building
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/system_note_service.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 385b34120ef..5f8a1bf07e2 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -670,11 +670,10 @@ module SystemNoteService end def merge_request_commit_url(merge_request, commit) - url_helpers.diffs_namespace_project_merge_request_url( - merge_request.target_project.namespace, + url_helpers.diffs_project_merge_request_url( merge_request.target_project, - merge_request.iid, - commit_id: commit.id + merge_request, + commit_id: commit ) end end |