Commit 558e9cd9 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Link correct project when adding file to empty MR

When creating a cross project merge request without changes. The MR
widget shows the option to create a new file. It would however link to
the wrong project.
parent 83c3e82d
...@@ -139,7 +139,7 @@ class MergeRequestWidgetEntity < IssuableEntity ...@@ -139,7 +139,7 @@ class MergeRequestWidgetEntity < IssuableEntity
expose :new_blob_path do |merge_request| expose :new_blob_path do |merge_request|
if presenter(merge_request).can_push_to_source_branch? if presenter(merge_request).can_push_to_source_branch?
project_new_blob_path(merge_request.project, merge_request.source_branch) project_new_blob_path(merge_request.source_project, merge_request.source_branch)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment