Skip to content

Commit

Permalink
luci-base: Allow "*" (== Any zone) in the firewall zone selection.
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
  • Loading branch information
adelton authored and systemcrash committed Jan 30, 2025
1 parent 300d746 commit 66c4251
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: '' +
'<li data-value="{{value}}">' +
Expand Down

0 comments on commit 66c4251

Please sign in to comment.