diff options
author | Rémy Coutable <remy@rymai.me> | 2019-05-07 14:52:04 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-05-07 14:52:04 +0000 |
commit | ed823c356f3875bf499b12aef29d3fe061b5a666 (patch) | |
tree | cb81aa2d51bb859da25f27089bb27a75ed367f3c /app | |
parent | 5c07f932bb7f99f231d83351e9a0f500d98074a2 (diff) | |
parent | 58c09eb70941a0954fb5cd7b0c6316c698353edb (diff) | |
download | gitlab-ce-ed823c356f3875bf499b12aef29d3fe061b5a666.tar.gz |
Merge branch 'sh-fix-related-merge-requests-path' into 'master'
Use a path for the related merge requests endpoint
Closes #61280
See merge request gitlab-org/gitlab-ce!28171
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/issues/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index 715c36fa9aa..d55afee4523 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -79,7 +79,7 @@ = render_if_exists 'projects/issues/related_issues' - #js-related-merge-requests{ data: { endpoint: expose_url(api_v4_projects_issues_related_merge_requests_path(id: @project.id, issue_iid: @issue.iid)), project_namespace: @project.namespace.path, project_path: @project.path } } + #js-related-merge-requests{ data: { endpoint: expose_path(api_v4_projects_issues_related_merge_requests_path(id: @project.id, issue_iid: @issue.iid)), project_namespace: @project.namespace.path, project_path: @project.path } } - if can?(current_user, :download_code, @project) #related-branches{ data: { url: related_branches_project_issue_path(@project, @issue) } } |