Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
d1f0b2f4
Commit
d1f0b2f4
authored
Nov 03, 2016
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix project Visibility level selector not using default values
parent
e4c05de7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+2
-1
changelogs/unreleased/issue_20245.yml
changelogs/unreleased/issue_20245.yml
+4
-0
spec/features/projects/new_project_spec.rb
spec/features/projects/new_project_spec.rb
+19
-0
No files found.
app/views/projects/new.html.haml
View file @
d1f0b2f4
...
...
@@ -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'
...
...
changelogs/unreleased/issue_20245.yml
0 → 100644
View file @
d1f0b2f4
---
title
:
Fix project Visibility Level selector not using default values
merge_request
:
author
:
spec/features/projects/new_project_spec.rb
0 → 100644
View file @
d1f0b2f4
require
"spec_helper"
feature
"New project"
,
feature:
true
do
context
"Visibility level selector"
do
let
(
:user
)
{
create
(
:admin
)
}
before
{
login_as
(
user
)
}
Gitlab
::
VisibilityLevel
.
options
.
each
do
|
key
,
level
|
it
"sets selector to
#{
key
}
"
do
stub_application_setting
(
default_project_visibility:
level
)
visit
new_project_path
expect
(
find_field
(
"project_visibility_level_
#{
level
}
"
)).
to
be_checked
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment