summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-25 19:43:33 -0500
committerMike Greiling <mike@pixelcog.com>2017-08-26 03:31:14 -0500
commit62be748ef81a9cd1d4e075940da2df20251605e2 (patch)
tree1dc91f2842dfa1afbc32dc86cd1aea035fdf776a /app/helpers
parent77a5d9db83ac54980eccfa57735af1ed01ba702c (diff)
downloadgitlab-ce-62be748ef81a9cd1d4e075940da2df20251605e2.tar.gz
dynamically disable/enable visibility options when changing namespaces in new project form
Diffstat (limited to 'app/helpers')
-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]