Fix Geo node form to send empty array when no namespaces were selected

parent 410b8290
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
.form-group .form-group
= form.label :namespace_ids, 'Namespaces to replicate', class: 'control-label' = form.label :namespace_ids, 'Namespaces to replicate', class: 'control-label'
.col-sm-10 .col-sm-10
= form.select :namespace_ids, namespaces_options(geo_node.namespace_ids), { include_hidden: false }, multiple: true, class: 'select2 select-wide', data: { field: 'group_ids' } = form.select :namespace_ids, namespaces_options(geo_node.namespace_ids), { include_hidden: true }, multiple: true, class: 'select2 select-wide', data: { field: 'group_ids' }
.help-block .help-block
Choose which namespaces you wish to replicate to this secondary node. Leave blank to replicate all. Choose which namespaces you wish to replicate to this secondary node. Leave blank to replicate all.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment