Skip to content
Snippets Groups Projects
Commit 558e9cd9 authored by Bob Van Landuyt's avatar Bob Van Landuyt
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -139,7 +139,7 @@ class MergeRequestWidgetEntity < IssuableEntity
 
expose :new_blob_path do |merge_request|
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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment