mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fixes filter button not disabled
This commit is contained in:
parent
04841af7b8
commit
ee8ffaca7d
1 changed files with 2 additions and 2 deletions
|
|
@ -1964,14 +1964,14 @@ function user_scripts.excludeScriptFilters(alert, confid, script_key, subdir)
|
|||
local done = true
|
||||
-- Getting the keys and values of the filters. e.g. filter=src_port, value=3900
|
||||
for filter, value in pairs(values) do
|
||||
if alert[filter] ~= value then
|
||||
if tonumber(alert[filter]) ~= tonumber(value) then
|
||||
-- The alert has a different value for that filter
|
||||
done = false
|
||||
goto continue2
|
||||
end
|
||||
::continue::
|
||||
end
|
||||
|
||||
|
||||
-- if
|
||||
if done then
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue