Removed double field in flow details (#6950)

This commit is contained in:
MatteoBiscosi 2023-02-08 12:03:43 +01:00
parent f810eceaa1
commit 9428000b8a
2 changed files with 49 additions and 1 deletions

View file

@ -1536,7 +1536,7 @@ else
local function format_custom_field(key, value, snmpdevice)
local formatted_value = handleCustomFlowField(key, value, snmpdevice)
if((tonumber(formatted_value)) and (math.floor(tonumber(formatted_value)) == 0)) then
formatted_value = ''
end
@ -1546,6 +1546,14 @@ else
local num = 0
for key,value in pairsByKeys(info) do
if tonumber(key) then
key = getFlowLabelFromId(key)
end
if fieldAlreadyPresent(key, flow) then
goto continue
end
if(num == 0) then
print("<tr><th colspan=3>"..i18n("flow_details.additional_flow_elements").."</th></tr>\n")
end
@ -1564,6 +1572,8 @@ else
end
num = num + 1
::continue::
end
end