Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-26 03:43:33 +0300
committerMike Greiling <mike@pixelcog.com>2017-08-26 11:31:14 +0300
commit62be748ef81a9cd1d4e075940da2df20251605e2 (patch)
tree1dc91f2842dfa1afbc32dc86cd1aea035fdf776a /app/helpers/namespaces_helper.rb
parent77a5d9db83ac54980eccfa57735af1ed01ba702c (diff)
dynamically disable/enable visibility options when changing namespaces in new project form
Diffstat (limited to 'app/helpers/namespaces_helper.rb')
-rw-r--r--app/helpers/namespaces_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb
index df8b247aff5..ca149ac2c20 100644
--- a/app/helpers/namespaces_helper.rb
+++ b/app/helpers/namespaces_helper.rb
@@ -41,7 +41,7 @@ module NamespacesHelper
elements = namespaces.sort_by(&:human_name).map! do |n|
[display_path ? n.full_path : n.human_name, n.id,
- data: { options_parent: type, visibility_level: n.visibility_level_value, name: n.human_name }]
+ data: { options_parent: type, visibility_level: n.visibility_level_value, visibility: n.visibility, name: n.name }]
end
[type.camelize, elements]