From c216b6fd9e53449073eb83c08dc9e8ba502266e4 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 4 Oct 2013 12:27:42 +0000 Subject: [PATCH] 2013-10-04 Sergio Martin * include/functions_events.php: Fixed ACLs in responses combo in detailed view of an agent for incident #226 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8852 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_events.php | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3f507a6bf0..abde83abbd 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-10-04 Sergio Martin + + * include/functions_events.php: Fixed ACLs in responses combo + in detailed view of an agent for incident #226 + 2013-10-04 Miguel de Dios * include/config_process.php: fixed the show strict error in PHP diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 84ace49135..a25ef33454 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1678,8 +1678,11 @@ function events_page_responses ($event) { // Custom responses $data = array(); $data[0] = __('Custom responses'); - $event_responses = db_get_all_rows_in_table('tevent_response'); - + + $id_groups = array_keys(users_get_groups(false, "EW")); + $event_responses = db_get_all_rows_filter('tevent_response', + array('id_group' => $id_groups)); + if(empty($event_responses)) { $data[1] = ''.__('N/A').''; }