diff options
author | Robert Speicher <robert@gitlab.com> | 2016-11-14 10:05:30 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-11-14 10:05:30 +0000 |
commit | 352d880a508ec0eec1acba0d0319dc858017ff9b (patch) | |
tree | 2b75a7dc28cc974355d033cf663cc027e7a9617d /app/views | |
parent | 006c163b53d062d990ac213deac70978b0a927cc (diff) | |
parent | d1f0b2f4339a7a46679ceb361982448229013c13 (diff) | |
download | gitlab-ce-352d880a508ec0eec1acba0d0319dc858017ff9b.tar.gz |
Merge branch 'issue_20245' into 'master'
Fix project Visibility level selector not using default values
closes #20245
See merge request !7264
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/new.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index 932603f03b0..0788924d44a 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -90,7 +90,8 @@ = f.label :visibility_level, class: 'label-light' do Visibility Level = link_to "(?)", help_page_path("public_access/public_access") - = render('shared/visibility_radios', model_method: :visibility_level, form: f, selected_level: @project.visibility_level, form_model: @project) + = render 'shared/visibility_level', f: f, visibility_level: default_project_visibility, can_change_visibility_level: true, form_model: @project + = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4 = link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel' |