contao/import — Issue #358: Events do not get indexed in default mode
Author: computino
Created: 2011-11-29 16:07:21+00:00
State: open
Labels: calendar, Defect

Events do only get indexed in "internal" mode, which is rarely used based on my experience. Most users do default (or none) and use some externals. Indexing in internal mode is kind of false, because internal links are pages - which are in the search index by themselves.

Line 310 of Calendar.php says

```
$objArticle = $this->Database->prepare("SELECT * FROM tl_calendar_events
WHERE pid=? AND source=? AND (start=_ OR start?)
AND published=1 ORDER BY startTime DESC
")
->execute($objCalendar->id, 'internal', $time, $time);
```

and should be something like

```
AND (source=? OR source=_)
->execute('default');
```

It's all the same on the live demo.

PS: Version 2.6.3 is missing in the select.

--- _Originally created on December 16th, 2008, at 05:23pm (ID 358)_