From fb101c29a4ba5f37892cd996edca0e439e2f17fc Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Wed, 27 May 2009 14:12:40 +0000 Subject: [PATCH] 2009-05-27 Esteban Sanchez * godmode/agentes/configurar_agente.php: Style correction. * operation/snmpconsole/snmp_view.php: Fixed creation link when the agent is not found by address. Fixes #2777409 * godmode/agentes/agent_manager.php: Use address as name on creation when it's given. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1713 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 10 ++++++++++ pandora_console/godmode/agentes/agent_manager.php | 5 +++++ .../godmode/agentes/configurar_agente.php | 1 - .../operation/snmpconsole/snmp_view.php | 14 +++++++------- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 64b3d987c2..2cacc673d9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2009-05-27 Esteban Sanchez + + * godmode/agentes/configurar_agente.php: Style correction. + + * operation/snmpconsole/snmp_view.php: Fixed creation link when + the agent is not found by address. Fixes #2777409 + + * godmode/agentes/agent_manager.php: Use address as name on creation + when it's given. + 2009-05-27 Esteban Sanchez * general/header.php: Added code to ignored parameters. Fixes #2779381 diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index 90670ab503..54270700d1 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -29,6 +29,11 @@ if (! isset ($id_agente) && ! $new_agent) { return; } +if ($new_agent) { + if (! empty ($direccion_agente) && empty ($nombre_agente)) + $nombre_agente = $direccion_agente; +} + echo "

".__('Agent configuration')." » "; if ($id_agente) { diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 3ee8e6a492..d8902b3e2b 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -184,7 +184,6 @@ if ($create_agent) { $img_style = array ("class" => "top", "width" => 16); if ($id_agente) { - echo '