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:
parent
94a31e21ca
commit
3d97ab3afa
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue