mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Fix alert type (alert_id) filter for Historical Flows (#6853)
This commit is contained in:
parent
b3030e5be7
commit
ceaa36104f
2 changed files with 4 additions and 13 deletions
|
|
@ -41,18 +41,6 @@ for id, v in pairs(tags) do
|
|||
|
||||
local filter = tag_utils.get_tag_info(id, alert_entities[page])
|
||||
|
||||
-- select (array of values)
|
||||
if filter.value_type == "alert_id" then
|
||||
filter.value_type = 'array'
|
||||
filter.options = {}
|
||||
for _, alert_type in pairsByValues(all_alert_types, alert_consts.alert_type_info_asc) do
|
||||
filter.options[#filter.options+1] = {
|
||||
value = alert_type.alert_id,
|
||||
label = alert_type.label,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
res[#res+1] = filter
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue