diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7580df7195..ddb54ee307 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-03-31 Junichi Satoh + + * include/functions_graph.php: Fixed SQL error with PostgreSQL. + 2012-03-31 Junichi Satoh * operation/incidents/incident.php: Fixed SQL error with PostgreSQL. diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index f9c2462834..6ee4a3b2dc 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1285,7 +1285,7 @@ function graphic_incident_group () { $sql = sprintf ('SELECT COUNT(id_incidencia) n_incidents, nombre FROM tincidencia,tgrupo WHERE tgrupo.id_grupo = tincidencia.id_grupo - GROUP BY tgrupo.id_grupo ORDER BY 1 DESC LIMIT %d', + GROUP BY tgrupo.id_grupo, nombre ORDER BY 1 DESC LIMIT %d', $max_items); $incidents = db_get_all_rows_sql ($sql);