diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-08-25 19:43:33 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-08-26 03:31:14 -0500 |
commit | 62be748ef81a9cd1d4e075940da2df20251605e2 (patch) | |
tree | 1dc91f2842dfa1afbc32dc86cd1aea035fdf776a /app/helpers | |
parent | 77a5d9db83ac54980eccfa57735af1ed01ba702c (diff) | |
download | gitlab-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.rb | 2 |
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] |