summaryrefslogtreecommitdiff
path: root/app/helpers/merge_requests_helper.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 14:22:33 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 14:23:13 +0100
commit7a65cb3abf63bcd87856c6220e87c7fccfdb8a1f (patch)
treeceb0170fc270177d3cab677aa47a53319b260151 /app/helpers/merge_requests_helper.rb
parente3233016be0a94b88e94700507760c9f672661f4 (diff)
downloadgitlab-ce-7a65cb3abf63bcd87856c6220e87c7fccfdb8a1f.tar.gz
Don't reset target branch when choosing to "Change branches" in MR
Diffstat (limited to 'app/helpers/merge_requests_helper.rb')
-rw-r--r--app/helpers/merge_requests_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb
index b804d4f4e3b..cc4243e1559 100644
--- a/app/helpers/merge_requests_helper.rb
+++ b/app/helpers/merge_requests_helper.rb
@@ -49,8 +49,9 @@ module MergeRequestsHelper
source_project_id: @merge_request.source_project_id,
target_project_id: @merge_request.target_project_id,
source_branch: @merge_request.source_branch,
- target_branch: nil
- }
+ target_branch: @merge_request.target_branch,
+ },
+ change_branches: true
)
end