mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Fix engaged alerts rendering for all families
This commit is contained in:
parent
25ee73bbe3
commit
24c3745810
9 changed files with 12 additions and 11 deletions
|
|
@ -2349,6 +2349,10 @@ function alert_store:format_json_record_common(value, entity_id, no_html)
|
|||
|
||||
record[BASE_RNAME.SCRIPT_KEY.name] = alert_json["alert_generation"] and alert_json["alert_generation"]["script_key"]
|
||||
|
||||
local is_engaged = self._status == alert_consts.alert_status.engaged.alert_status_id or
|
||||
(value.alert_status and tonumber(value.alert_status) == alert_consts.alert_status.engaged.alert_status_id)
|
||||
record["is_engaged"] = is_engaged
|
||||
|
||||
return record
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -450,9 +450,6 @@ function host_alert_store:format_record(value, no_html)
|
|||
mitre_subtechnique_i18n = (mitre_utils.sub_technique_by_id[mitre_subtechnique] and mitre_utils.sub_technique_by_id[mitre_subtechnique].i18n_label) or "",
|
||||
}
|
||||
|
||||
local is_engaged = self._status == alert_consts.alert_status.engaged.alert_status_id or
|
||||
(value.alert_status and tonumber(value.alert_status) == alert_consts.alert_status.engaged.alert_status_id)
|
||||
record["is_engaged"] = is_engaged
|
||||
record[RNAME.IS_VICTIM.name] = ""
|
||||
record[RNAME.IS_ATTACKER.name] = ""
|
||||
record[RNAME.IS_CLIENT.name] = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue