From deb5c5ff46904d9563f8c21cd253e6438857f6b8 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Wed, 22 Dec 2010 18:56:36 +0000 Subject: [PATCH] 2010-12-22 Sergio Martin * godmode/massive/massive_edit_agents.php: Fixed the massive edition of the agents parent for bug 3141852 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3688 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/massive/massive_edit_agents.php | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d23edc80e5..2aea5fea44 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-12-22 Sergio Martin + + * godmode/massive/massive_edit_agents.php: Fixed the massive edition + of the agents parent for bug 3141852 + 2010-12-22 Ramon Novoa * include/functions_reporting.php, diff --git a/pandora_console/godmode/massive/massive_edit_agents.php b/pandora_console/godmode/massive/massive_edit_agents.php index 749e147d37..5359ad4c7d 100644 --- a/pandora_console/godmode/massive/massive_edit_agents.php +++ b/pandora_console/godmode/massive/massive_edit_agents.php @@ -51,7 +51,6 @@ $update_agents = get_parameter ('update_agents', 0); if ($update_agents) { $values = array(); - if (get_parameter ('group', '') != -1) $values['id_grupo'] = get_parameter ('group'); if (get_parameter ('interval', '') != '') @@ -59,7 +58,7 @@ if ($update_agents) { if (get_parameter ('id_os', '') != -1) $values['id_os'] = get_parameter ('id_os'); if (get_parameter ('id_parent', '') != '') - $values['id_parent'] = get_parameter ('id_parent'); + $values['id_parent'] = get_agent_id(get_parameter ('id_parent')); if (get_parameter ('server_name', '') != -1) $values['server_name'] = get_parameter ('server_name'); if (get_parameter ('description', '') != '')