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>
(cherry picked from commit e57f8663afd53cc7421debcd63444e1d136f5dec)
This commit is contained in:
parent
4c05263573
commit
165e411cd4
@ -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 ['-'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user