From 7046a1cac1425477196a0d49c3fc64ebfcf9a238 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 14 Jan 2025 16:16:56 +0100 Subject: [PATCH] luci-base: widgets; remove maximal firewall zone name length datatype removes a075566dbb5147a4311cd24f46a173222c9172cf (and subsequent fixes) enforcing a datatype on this widget generates the following error when multiple zones are selected: Expecting: valid UCI identifier (the error triggered for uciname). At its simplest: multiple selections are no longer just a uciname, but multiple thereof. Signed-off-by: Paul Donald --- modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 1 - 1 file changed, 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 cd16227fc8..0ba07afcde 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -148,7 +148,6 @@ var CBIZoneSelect = form.ListValue.extend({ display_items: this.display_size || this.size || 3, dropdown_items: this.dropdown_size || this.size || 5, validate: L.bind(this.validate, this, section_id), - datatype: L.hasSystemFeature('firewall4') ? 'uciname' : 'and(uciname,maxlength(11))', create: !this.nocreate, create_markup: '' + '
  • ' + -- 2.30.2