mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fix plugins_utils.hasAlerts what was not restoring the selected interface
This commit is contained in:
parent
ce45bf0f9c
commit
080e590166
1 changed files with 2 additions and 2 deletions
|
|
@ -778,14 +778,14 @@ function plugins_utils.hasAlerts(ifid, options)
|
|||
local alert_utils = require("alert_utils")
|
||||
|
||||
local opts = table.merge(options, {ifid = ifid})
|
||||
local old_iface = iface
|
||||
local old_ifid = interface.getId()
|
||||
local rv
|
||||
interface.select(ifid)
|
||||
|
||||
rv = (areAlertsEnabled() and
|
||||
(alert_utils.hasAlerts("historical", alert_utils.getTabParameters(opts, "historical")) or
|
||||
alert_utils.hasAlerts("engaged", alert_utils.getTabParameters(opts, "engaged"))))
|
||||
interface.select(old_iface)
|
||||
interface.select(''..old_ifid)
|
||||
return(rv)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue