Set force_remove_source_branch default to false.

This commit is contained in:
Bryce Johnson 2017-06-29 18:41:09 -04:00
parent e48f54b5b2
commit da18378fa7
2 changed files with 5 additions and 2 deletions

View file

@ -11,8 +11,7 @@
.col-sm-10.col-sm-offset-2
- if issuable.can_remove_source_branch?(current_user)
.checkbox
- initial_checkbox_value = issuable.merge_params.key?('force_remove_source_branch') ? issuable.force_remove_source_branch? : true
= label_tag 'merge_request[force_remove_source_branch]' do
= hidden_field_tag 'merge_request[force_remove_source_branch]', '0', id: nil
= check_box_tag 'merge_request[force_remove_source_branch]', '1', initial_checkbox_value
= check_box_tag 'merge_request[force_remove_source_branch]', '1', issuable.force_remove_source_branch?
Remove source branch when merge request is accepted.

View file

@ -0,0 +1,4 @@
---
title: Set default for Remove source branch to false.
merge_request: !12576
author: