Unverified Commit 87f082de authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Frontend to send template name instead of on/off

The params were not getting a value other than `project_templates:"on"`
so the backend wasn't sure what template to use.

Fixes gitlab-org/gitlab-ce#36492
parent f32832c8659b
......@@ -28,7 +28,7 @@ def edit
def create
@project = ::Projects::CreateService.new(current_user, project_params).execute
@project = ::Projects::CreateService.new(current_user, project_params.merge(template_name: params[:template_name])).execute
if @project.saved?
cookies[:issue_board_welcome_hidden] = { path: project_path(@project), value: nil, expires: Time.at(0) }
......@@ -5,6 +5,6 @@
- Gitlab::ProjectTemplate.all.each do |template|
%input{ type: "radio", autocomplete: "off", name: "project_templates", id: template.name }
%input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name }
= custom_icon(template.logo)
= template.title
......@@ -18,7 +18,7 @@
click_button "Create project"
expect(page).to have_content 'This project Loading..'
expect(page).to have_content template.name
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment