diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php index 62b11e86df..0618ae83c3 100644 --- a/pandora_console/include/ajax/events.php +++ b/pandora_console/include/ajax/events.php @@ -101,9 +101,8 @@ if ($get_comments === true) { if (isset($event_rep) === true && $event_rep > 0) { // Default grouped message filtering (evento and estado). $whereGrouped = sprintf( - '`evento` = "%s" AND `estado` = "%s"', - $event['evento'], - $event['estado'] + '`evento` = "%s"', + $event['evento'] ); // If id_agente is reported, filter the messages by them as well. diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 2c3bffd5ee..b210187247 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1401,7 +1401,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':