places: fix for postgres
parent
926692d65b
commit
75de618f56
|
@ -31,8 +31,6 @@ class PlacesController extends ApiBase
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
*
|
*
|
||||||
* @NoCSRFRequired
|
|
||||||
*
|
|
||||||
* Get list of places with counts of images
|
* Get list of places with counts of images
|
||||||
*/
|
*/
|
||||||
public function places(): JSONResponse
|
public function places(): JSONResponse
|
||||||
|
|
|
@ -37,7 +37,7 @@ trait TimelineQueryPlaces
|
||||||
$query = $this->joinFilecache($query, $root, true, false);
|
$query = $this->joinFilecache($query, $root, true, false);
|
||||||
|
|
||||||
// GROUP and ORDER by tag name
|
// GROUP and ORDER by tag name
|
||||||
$query->groupBy('e.osm_id');
|
$query->groupBy('e.osm_id', 'e.name');
|
||||||
$query->orderBy($query->createFunction('LOWER(e.name)'), 'ASC');
|
$query->orderBy($query->createFunction('LOWER(e.name)'), 'ASC');
|
||||||
$query->addOrderBy('e.osm_id'); // tie-breaker
|
$query->addOrderBy('e.osm_id'); // tie-breaker
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue