Skip to content

Commit 66c4251

Browse files
adeltonsystemcrash
authored andcommitted
luci-base: Allow "*" (== Any zone) in the firewall zone selection.
Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
1 parent 300d746 commit 66c4251

File tree

1 file changed

+2
-2
lines changed
  • modules/luci-base/htdocs/luci-static/resources/tools

1 file changed

+2
-2
lines changed

modules/luci-base/htdocs/luci-static/resources/tools/widgets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ var CBIZoneSelect = form.ListValue.extend({
149149
dropdown_items: this.dropdown_size || this.size || 5,
150150
validate: L.bind(this.validate, this, section_id),
151151
datatype: L.hasSystemFeature('firewall4')
152-
? ( this.multiple ? 'list(uciname)' : 'uciname' )
153-
: this.multiple ? 'list(and(uciname,maxlength(11)))' : 'and(uciname,maxlength(11))',
152+
? ( this.multiple ? 'list(or(uciname,"*"))' : 'or(uciname,"*")' )
153+
: this.multiple ? 'list(or(and(uciname,maxlength(11)),"*"))' : 'or(and(uciname,maxlength(11)),"*")',
154154
create: !this.nocreate,
155155
create_markup: '' +
156156
'<li data-value="{{value}}">' +

0 commit comments

Comments
 (0)