Error in frontend after removing a deviation
I created a deviation. When I removed the deviation again I get this error in frontend:
Fatal error: Call to a member function getStart() on null in /home/.../.../.../public_html/typo3conf/ext/cal/Classes/Service/EventService.php on line 1526
#1 Updated by dermueller no-lastname-given about 4 years ago
I've had some trouble finding this out, but the reason is that the "deleted" flag ist not taken into account when selecting the recurrence during index process.
Find classes/service/EventService.php and around line 1359 where it goes like
BEenableFields does not use the deleted flag. You have to add
So the result is
$where = 'parentid = ' . $event->getUid () . \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('tx_cal_event_deviation').\TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('tx_cal_event_deviation');
Right now I have this hardcoded in EventService.php - looking for a way to make this update-proof until the fix is made to the original sources.