From 66c4251cae43ebe666fedf861d15a5078d095575 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Wed, 29 Jan 2025 19:31:12 +0100 Subject: [PATCH] luci-base: Allow "*" (== Any zone) in the firewall zone selection. Signed-off-by: Jan Pazdziora --- .../luci-base/htdocs/luci-static/resources/tools/widgets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 497044d000..171cd4bf9f 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -149,8 +149,8 @@ var CBIZoneSelect = form.ListValue.extend({ dropdown_items: this.dropdown_size || this.size || 5, validate: L.bind(this.validate, this, section_id), datatype: L.hasSystemFeature('firewall4') - ? ( this.multiple ? 'list(uciname)' : 'uciname' ) - : this.multiple ? 'list(and(uciname,maxlength(11)))' : 'and(uciname,maxlength(11))', + ? ( this.multiple ? 'list(or(uciname,"*"))' : 'or(uciname,"*")' ) + : this.multiple ? 'list(or(and(uciname,maxlength(11)),"*"))' : 'or(and(uciname,maxlength(11)),"*")', create: !this.nocreate, create_markup: '' + '
  • ' + -- 2.30.2