From 1eb0b27da3c07806ed6664367e1f1c0d2294a9ab Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Fri, 27 Sep 2019 16:09:11 +0200 Subject: [PATCH 1/2] Fixed module update bug --- pandora_console/godmode/agentes/configurar_agente.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index e97fa7cf39..7bd0bb6885 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1383,7 +1383,7 @@ if ($update_module || $create_module) { $ff_event_warning = (int) get_parameter('ff_event_warning'); $ff_event_critical = (int) get_parameter('ff_event_critical'); $ff_type = (int) get_parameter('ff_type'); - $each_ff = (int) get_parameter('each_ff'); + $each_ff = (int) get_parameter('each_ff', $module['each_ff']); $ff_timeout = (int) get_parameter('ff_timeout'); $unit = (string) get_parameter('unit'); $id_tag = (array) get_parameter('id_tag_selected'); From 941362776eec825e5e8b22e1e0a1f0a9255a4ccb Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Tue, 8 Oct 2019 14:06:30 +0200 Subject: [PATCH 2/2] Fixed keepcounters ckbox bug --- pandora_console/godmode/agentes/configurar_agente.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 7bd0bb6885..55116f940a 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1382,7 +1382,7 @@ if ($update_module || $create_module) { $ff_event_normal = (int) get_parameter('ff_event_normal'); $ff_event_warning = (int) get_parameter('ff_event_warning'); $ff_event_critical = (int) get_parameter('ff_event_critical'); - $ff_type = (int) get_parameter('ff_type'); + $ff_type = (int) get_parameter('ff_type', $module['ff_type']); $each_ff = (int) get_parameter('each_ff', $module['each_ff']); $ff_timeout = (int) get_parameter('ff_timeout'); $unit = (string) get_parameter('unit');