From a075566dbb5147a4311cd24f46a173222c9172cf Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Thu, 9 Jan 2025 21:00:55 +0100 Subject: [PATCH] luci-base: Enforce maximal firewall zone length in the Create / Assign scenario as well. Signed-off-by: Jan Pazdziora --- modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 1 + 1 file changed, 1 insertion(+) 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 0ba07afcde8a..4c9cd6924e06 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -148,6 +148,7 @@ 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: 'and(uciname,maxlength(11))', create: !this.nocreate, create_markup: '' + '
  • ' +