Fix calendar query for instances without tl_calendar.published
This commit is contained in:
@@ -49,9 +49,7 @@ class EventFilterController extends AbstractFrontendModuleController
|
||||
<<<'SQL'
|
||||
SELECT e.id
|
||||
FROM tl_calendar_events e
|
||||
INNER JOIN tl_calendar c ON c.id=e.pid
|
||||
WHERE e.published='1'
|
||||
AND c.published='1'
|
||||
AND (e.startTime>=? OR e.endTime>=?)
|
||||
ORDER BY e.startTime ASC
|
||||
SQL,
|
||||
@@ -63,10 +61,8 @@ class EventFilterController extends AbstractFrontendModuleController
|
||||
<<<'SQL'
|
||||
SELECT e.id
|
||||
FROM tl_calendar_events e
|
||||
INNER JOIN tl_calendar c ON c.id=e.pid
|
||||
WHERE e.pid IN (?)
|
||||
AND e.published='1'
|
||||
AND c.published='1'
|
||||
AND (e.startTime>=? OR e.endTime>=?)
|
||||
ORDER BY e.startTime ASC
|
||||
SQL,
|
||||
|
||||
Reference in New Issue
Block a user