mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Bug fix
This commit is contained in:
parent
60a0e40d4e
commit
ac6788a311
1 changed files with 10 additions and 1 deletions
|
|
@ -44,7 +44,16 @@ end
|
|||
function flow_alert_host_policy.format(ifid, alert, alert_type_params)
|
||||
-- Extracting info field
|
||||
local href = ntop.getHttpPrefix() .. '/lua/admin/network_configuration.lua?page=policy'
|
||||
local key = "alerts_dashboard.alert_host_policy_descr_"..alert_type_params.reason
|
||||
local key
|
||||
local reason = alert_type_params.reason
|
||||
|
||||
if(reason == nil) then
|
||||
key = tostring(flow_alert_keys.flow_alert_host_policy)
|
||||
reason = alert_type_params.alerts[key].reason
|
||||
end
|
||||
|
||||
|
||||
key = "alerts_dashboard.alert_host_policy_descr_"..reason
|
||||
|
||||
return(i18n(key, { href = href }))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue