From e3e9f86119354b2a552e0422085f5ae939b2e433 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Tue, 26 Jul 2022 10:55:11 +0200 Subject: [PATCH] not group by event status pandora_enterprise#8043 --- pandora_console/include/ajax/events.php | 3 +-- pandora_console/include/functions_events.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php index d61206f710..a15b98d1fc 100644 --- a/pandora_console/include/ajax/events.php +++ b/pandora_console/include/ajax/events.php @@ -99,9 +99,8 @@ if ($get_comments === true) { $whereGrouped = '1=1'; // Default grouped message filtering (evento and estado). $whereGrouped = sprintf( - '`evento` = "%s" AND `estado` = "%s" AND `event_type` = "%s" ', + '`evento` = "%s" AND `event_type` = "%s" ', $event['evento'], - $event['estado'], $event['event_type'] ); diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index b34a313737..fbe1aeec58 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1383,7 +1383,7 @@ function events_get_all( case '1': // Group by events. - $group_by .= 'te.evento, te.id_agente, te.id_agentmodule, te.estado'; + $group_by .= 'te.evento, te.id_agente, te.id_agentmodule'; break; case '2':