fixed comments count in citizen portal

This commit is contained in:
2026-04-28 15:15:33 +02:00
parent 879d7c5858
commit b18811c453
4 changed files with 87 additions and 8 deletions

View File

@@ -83,8 +83,8 @@ function handle_read($input) {
$municipality_id = $input['municipality_id'];
// Builds SQL Query with Placeholders for prepared Statement
$sql = "SELECT *, ST_AsGeoJSON(geom) AS geojson
FROM contributions
$sql = "SELECT *, ST_AsGeoJSON(geom) AS geojson
FROM contributions
WHERE municipality_id = :mid";
$params = [':mid' => $municipality_id];