summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-03-11 19:02:21 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2017-03-11 19:02:21 +1100
commit245020a127b8e3b95d16d0683f79d48895c8944c (patch)
treea555c51fbff700e2ddf45536ba4d9b63535380f1
parent69c1a9ae868593192d45642d3ad1550e057f877f (diff)
downloadgitlab-ce-245020a127b8e3b95d16d0683f79d48895c8944c.tar.gz
Fix visibility level on new project page
-rw-r--r--app/views/projects/new.html.haml3
-rw-r--r--changelogs/unreleased/fix_visibility_level.yml4
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 2a98bba05ee..1a51f777bd9 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -1,5 +1,6 @@
- page_title 'New Project'
- header_title "Projects", dashboard_projects_path
+- visibility_level = params.try(:[], :project).try(:[], :visibility_level).to_i || default_project_visibility
.project-edit-container
.project-edit-errors
@@ -95,7 +96,7 @@
= f.label :visibility_level, class: 'label-light' do
Visibility Level
= link_to icon('question-circle'), help_page_path("public_access/public_access")
- = render 'shared/visibility_level', f: f, visibility_level: default_project_visibility, can_change_visibility_level: true, form_model: @project, with_label: false
+ = render 'shared/visibility_level', f: f, visibility_level: visibility_level, can_change_visibility_level: true, form_model: @project, with_label: false
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
= link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel'
diff --git a/changelogs/unreleased/fix_visibility_level.yml b/changelogs/unreleased/fix_visibility_level.yml
new file mode 100644
index 00000000000..4cf649124ca
--- /dev/null
+++ b/changelogs/unreleased/fix_visibility_level.yml
@@ -0,0 +1,4 @@
+---
+title: Fix visibility level on new project page
+merge_request: 9885
+author: blackst0ne