From ba321fdc23b477ebffad918dfd32a539f02b1e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Mummert?= Date: Thu, 26 Feb 2026 21:16:36 +0100 Subject: [PATCH] Map: show event markers only for future events --- src/Service/MapModuleDataProvider.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/Service/MapModuleDataProvider.php b/src/Service/MapModuleDataProvider.php index 06f8010..78a200a 100644 --- a/src/Service/MapModuleDataProvider.php +++ b/src/Service/MapModuleDataProvider.php @@ -103,31 +103,6 @@ class MapModuleDataProvider } if ($includeEvents) { - foreach ($this->fetchLocationRows($locationTable, $locationGeoColumns) as $row) { - $id = (int) ($row['id'] ?? 0); - - if ($id <= 0 || isset($seen['location'][$id])) { - continue; - } - - $coords = $this->extractCoordinates($row['latitude'] ?? null, $row['longitude'] ?? null); - - if (null === $coords) { - continue; - } - - $seen['location'][$id] = true; - $items[] = [ - 'type' => 'location', - 'markerType' => 'location', - 'id' => $id, - 'title' => trim((string) ($row['title'] ?? '')), - 'latitude' => $coords['latitude'], - 'longitude' => $coords['longitude'], - 'extra' => [], - ]; - } - foreach ($this->fetchEventRows($locationTable, $locationGeoColumns) as $row) { $id = (int) ($row['event_id'] ?? 0);