From 6f89778e2bc85d74237ecc5b6552999ad486686f Mon Sep 17 00:00:00 2001 From: slerena Date: Thu, 10 Apr 2008 14:07:42 +0000 Subject: [PATCH] 2008-04-10 Sancho Lerena * godmode/agentes/configurar_agente.php: Fixe problem with server assigment in creation mode. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 3 +++ pandora_console/godmode/agentes/configurar_agente.php | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c5b9ae1a57..c7511a2ec9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,5 +1,8 @@ 2008-04-10 Sancho Lerena + * godmode/agentes/configurar_agente.php: Fixe problem with server + assigment in creation mode. + * godmode/agentes/alert_manager.php, godmode/agentes/configurar_agente.php, godmode/agentes/alert_manager_editor.php: Fixed problem with combined alert editor. Tested and works fine for me. diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index c1593da4ef..c455088731 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -109,10 +109,12 @@ if ( isset ($_POST["create_agent"])) { // Create a new and shining agent $intervalo = entrada_limpia ($_POST["intervalo"]); $comentarios = entrada_limpia ($_POST["comentarios"]); $modo = entrada_limpia ($_POST["modo"]); - $id_network_server = get_parameter_post ($_POST["network_server"], 0); - $id_plugin_server = get_parameter_post ($_POST["plugin_server"], 0); - $id_prediction_server = get_parameter_post ($_POST["prediction_server"], 0); - $id_wmi_server = get_parameter_post ($_POST["wmi_server"], 0); + + $id_network_server = get_parameter_post ("network_server", 0); + $id_plugin_server = get_parameter_post ("plugin_server", 0); + $id_prediction_server = get_parameter_post ("prediction_server", 0); + $id_wmi_server = get_parameter_post ("wmi_server", 0); + $id_os = entrada_limpia ($_POST["id_os"]); $disabled = entrada_limpia ($_POST["disabled"]);