Compare commits

...

1 Commits

Author SHA1 Message Date
Jürgen Mummert 3a24b24b84 Fix event filter location and tags column mapping 2026-02-22 11:13:03 +01:00
@@ -87,12 +87,12 @@ class EventFilterController extends AbstractFrontendModuleController
$rows = $this->connection->executeQuery(
<<<'SQL'
SELECT t.id, t.tag, COUNT(DISTINCT r.item_id) AS total
SELECT t.id, t.tag, COUNT(DISTINCT r.pid) AS total
FROM tl_tags_rel r
INNER JOIN tl_tags t ON t.id=r.tag_id
WHERE r.ptable='tl_calendar_events'
AND r.field='tags'
AND r.item_id IN (?)
AND r.pid IN (?)
GROUP BY t.id, t.tag
ORDER BY t.tag ASC
SQL,
@@ -128,9 +128,9 @@ class EventFilterController extends AbstractFrontendModuleController
<<<'SQL'
SELECT l.id, l.title, COUNT(e.id) AS total
FROM tl_calendar_events e
INNER JOIN tl_location l ON l.id=e.location
INNER JOIN tl_location l ON l.id=e.location_id
WHERE e.id IN (?)
AND e.location>0
AND e.location_id>0
GROUP BY l.id, l.title
ORDER BY l.title ASC
SQL,