diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-08-23 19:55:53 +0300 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-08-25 03:20:49 +0300 |
commit | 24e2c39f1cebc47bf3c558a67a5d8d179651594f (patch) | |
tree | 67eeb567f44ac456a1f91f0d8111799900fd3cc7 | |
parent | fcbca7d9b4becd1302b98a5df075460bc07a2cf3 (diff) |
Merge branch 'zj-fix-fe-blank-button' into 'master'
Fix blank button not resetting project template value
Closes #36816
See merge request !13757
-rw-r--r-- | app/views/projects/_project_templates.html.haml | 2 | ||||
-rw-r--r-- | changelogs/unreleased/zj-fix-fe-blank-button.yml | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/_project_templates.html.haml b/app/views/projects/_project_templates.html.haml index 97cf13df070..5638b7da1b0 100644 --- a/app/views/projects/_project_templates.html.haml +++ b/app/views/projects/_project_templates.html.haml @@ -1,6 +1,6 @@ .project-templates-buttons.import-buttons{ data: { toggle: "buttons" } } .btn.blank-option.active - %input{ type: "radio", autocomplete: "off", name: "project_templates", id: "blank", checked: "true" } + %input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: "blank", checked: "true", value: "" } = icon('file-o', class: 'btn-template-icon') Blank - Gitlab::ProjectTemplate.all.each do |template| diff --git a/changelogs/unreleased/zj-fix-fe-blank-button.yml b/changelogs/unreleased/zj-fix-fe-blank-button.yml new file mode 100644 index 00000000000..2165d4186c1 --- /dev/null +++ b/changelogs/unreleased/zj-fix-fe-blank-button.yml @@ -0,0 +1,5 @@ +--- +title: Fix new project form not resetting the template value +merge_request: +author: +type: fixed |