From 4533b0357f25a5c00b01955aaa47ff2ed4cb9832 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 30 Nov 2009 11:43:59 +0000 Subject: [PATCH] 2009-11-30 Miguel de Dios * godmode/agentes/configurar_agente.php: delete the simple alerts asociated to deleted module. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/configurar_agente.php | 3 +++ 2 files changed, 8 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d33514e6a1..c74fbb26c8 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-11-30 Miguel de Dios + + * godmode/agentes/configurar_agente.php: delete the simple alerts + asociated to deleted module. + 2009-11-30 Miguel de Dios * include/functions_agents.php: fix now don't show alerts with diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 176651f185..e3e04d1e6f 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -592,6 +592,9 @@ if (isset ($_GET["delete_module"])){ // DELETE agent module ! if (process_sql ("DELETE FROM tagente_datos_inc WHERE id_agente_modulo = ".$id_borrar_modulo) === false) $error++; + + if (process_sql ("DELETE FROM talert_template_modules WHERE id_agent_module = ".$id_borrar_modulo) === false) + $error++; //Check for errors