mirror of
https://github.com/openwrt/luci.git
synced 2025-12-27 10:10:25 +04:00
luci-mod-network: parse ports without tag/pvid annotation as well
Fixes: 01eac366f6 ("luci-mod-network: fix tagging/pvid state parsing in bridge-vlan ports")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -272,9 +272,9 @@ var cbiTagValue = form.Value.extend({
|
||||
if (s[0] != this.port)
|
||||
continue;
|
||||
|
||||
var t = s[1].match(/t/) ? 't' : 'u';
|
||||
var t = /t/.test(s[1] || '') ? 't' : 'u';
|
||||
|
||||
return s[1].match(/\*/) ? [t, '*'] : [t];
|
||||
return /\*/.test(s[1] || '') ? [t, '*'] : [t];
|
||||
}
|
||||
|
||||
return ['-'];
|
||||
|
||||
Reference in New Issue
Block a user