Fix wrong engaged alerts number when a filter is applied

This commit is contained in:
emanuele-f 2019-07-31 15:05:26 +02:00
parent 6f52961c84
commit 444916fa14
2 changed files with 17 additions and 10 deletions

View file

@ -66,12 +66,7 @@ if alert_options.entity_val ~= nil then
alert_options.entity_val = string.gsub(alert_options.entity_val, "https:__", "https://")
end
local num_alerts = tonumber(_GET["totalRows"])
if num_alerts == nil then
num_alerts = getNumAlerts(status, alert_options)
end
local alerts = getAlerts(status, alert_options)
local alerts, num_alerts = getAlerts(status, alert_options, true --[[ with_counters ]])
if alerts == nil then alerts = {} end