Removed the mac/device type field from the asset details page when not defined (#9915)

This commit is contained in:
Manuel Ceroni 2025-12-30 11:10:39 +01:00 committed by GitHub
parent 0d56f1674a
commit 315a3c4de0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -572,10 +572,12 @@ function get_symbolic_mac_rev(mac_address)
return (magic_macs[mac_address])
else
local m = string.sub(mac_address, 1, 8)
local s = get_mac_classification(m)
if ((s ~= nil) and (s ~= m)) then
return (mac_address .. " [" .. trimSpace(s) .. "]")
if not isEmptyString(m) then
local s = get_mac_classification(m)
if ((s ~= nil) and (s ~= m)) then
return (mac_address .. " [" .. trimSpace(s) .. "]")
end
end
end