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:
Zeger-Jan van de Weg 2017-08-23 09:02:46 +02:00
parent 0f74ba9672
commit 3611b664a9
No known key found for this signature in database
GPG Key ID: 65F6A8D64A88ABAC
2 changed files with 6 additions and 1 deletions

View File

@ -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|

View File

@ -0,0 +1,5 @@
---
title: Fix new project form not resetting the template value
merge_request:
author:
type: fixed