Fix blank button not resetting project template value
The button didn't override a value, so the old value was posted again.
This commit is contained in:
parent
0f74ba9672
commit
3611b664a9
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
.project-templates-buttons.import-buttons{ data: { toggle: "buttons" } }
|
.project-templates-buttons.import-buttons{ data: { toggle: "buttons" } }
|
||||||
.btn.blank-option.active
|
.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')
|
= icon('file-o', class: 'btn-template-icon')
|
||||||
Blank
|
Blank
|
||||||
- Gitlab::ProjectTemplate.all.each do |template|
|
- Gitlab::ProjectTemplate.all.each do |template|
|
||||||
|
|
5
changelogs/unreleased/zj-fix-fe-blank-button.yml
Normal file
5
changelogs/unreleased/zj-fix-fe-blank-button.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Fix new project form not resetting the template value
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: fixed
|
Loading…
Reference in a new issue