From 2a8e18fc9af61a46ba6db2f74ebd69818c9ef3ac Mon Sep 17 00:00:00 2001 From: hkosaka Date: Fri, 6 Jun 2014 07:34:08 +0000 Subject: [PATCH] 2014-06-06 Hirofumi Kosaka * godmode/massive/massive_add_alerts.php: Fixed bug that all agents the user can view would be target of the operation, if the user has an AW privilege for any agent group. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/godmode/massive/massive_add_alerts.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 96c9c01451..6bcc5bdb14 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2014-06-06 Hirofumi Kosaka + + * godmode/massive/massive_add_alerts.php: Fixed bug that all + agents the user can view would be target of the operation, if + the user has an AW privilege for any agent group. + 2014-06-05 Sergio Martin * operation/agentes/ver_agente.php: Fix sql error in the layer that diff --git a/pandora_console/godmode/massive/massive_add_alerts.php b/pandora_console/godmode/massive/massive_add_alerts.php index 3eb0b23801..becfb22477 100644 --- a/pandora_console/godmode/massive/massive_add_alerts.php +++ b/pandora_console/godmode/massive/massive_add_alerts.php @@ -147,8 +147,8 @@ $table->data[1][0] .= ''; $agents_alerts = alerts_get_agents_with_alert_template ($id_alert_template, $id_group, false, array ('tagente.nombre', 'tagente.id_agente')); -$agents = agents_get_agents(); -$table->data[1][1] = html_print_select (index_array ($agents, 'id_agente', 'nombre'), +$agents = agents_get_group_agents (array_keys (users_get_groups ($config["id_user"], "AW", false))); +$table->data[1][1] = html_print_select ($agents, 'id_agents[]', '', '', '', '', true, true, true, '', false, 'width:180px;'); $table->data[1][2] = __('When select agents'); $table->data[1][2] .= '
';