2012-03-31 Junichi Satoh <junichi@rworks.jp>

* include/functions_graph.php: Fixed SQL error with PostgreSQL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5856 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2012-03-31 06:45:05 +00:00
parent 94a31e21ca
commit 3d97ab3afa
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-03-31 Junichi Satoh <junichi@rworks.jp>
* include/functions_graph.php: Fixed SQL error with PostgreSQL.
2012-03-31 Junichi Satoh <junichi@rworks.jp>
* operation/incidents/incident.php: Fixed SQL error with PostgreSQL.

View File

@ -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);