From 5c5b1340e5541d6283b825f7756812fc1784756f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 7 Nov 2020 00:46:30 +0100 Subject: [PATCH] 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 --- modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b97696c1b8..3f2b7b9ffc 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: '' + -- 2.30.2