diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-11-07 00:46:30 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-11-07 00:46:30 +0100 |
commit | 5c5b1340e5541d6283b825f7756812fc1784756f (patch) | |
tree | 77600e248e53711296e2898c76757579b5d1a58f /modules/luci-base | |
parent | 2b99473f2cd3321ecf96e92606c3263c2941eb7b (diff) |
luci-base: tools.widgets.NetworkSelect: properly validate multi select
Fixes: 2b99473f2 ("luci-base: tools.widget.NetworkSelect: disallow invalid network names")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index b97696c1b..3f2b7b9ff 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -393,7 +393,7 @@ var CBINetworkSelect = form.ListValue.extend({ select_placeholder: E('em', _('unspecified')), display_items: this.display_size || this.size || 3, dropdown_items: this.dropdown_size || this.size || 5, - datatype: 'uciname', + datatype: this.multiple ? 'list(uciname)' : 'uciname', validate: L.bind(this.validate, this, section_id), create: !this.nocreate, create_markup: '' + |