Fix VLAN page Untagged traffic case. (#7998)

This commit is contained in:
Nicolo Maio 2023-11-09 15:56:38 +01:00
parent 0de8d4e98e
commit 056c585a04
2 changed files with 3 additions and 2 deletions

View file

@ -515,8 +515,9 @@ function getFullVlanName(vlan_id, compact)
local alias = getVlanAlias(vlan_id)
-- In case of vlan 0, return empty string as name
-- fix for untagged vlan (#7998)
if tonumber(vlan_id) == 0 then
return ''
return i18n('no_vlan')
end
if not isEmptyString(alias) then