Skip to content

Commit

Permalink
luci-base: widgets; remove maximal firewall zone name length datatype
Browse files Browse the repository at this point in the history
removes a075566 (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 <newtwen+github@gmail.com>
  • Loading branch information
systemcrash committed Jan 14, 2025
1 parent b85628e commit 7046a1c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: '' +
'<li data-value="{{value}}">' +
Expand Down

0 comments on commit 7046a1c

Please sign in to comment.