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':