diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php b/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php index 8f03cdf6..1367dc85 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php @@ -61,16 +61,7 @@ class TravelinfoController extends ActionController /** @var Date $date */ $date = $this->dateRepository->findForProductAndDate($product, $travelDate)->getFirst(); - - if (null === $date) { - $response = GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction( - $GLOBALS['TYPO3_REQUEST'], - 'Reiseinformationen nicht gefunden' - ); - throw new ImmediateResponseException($response, 1731071856); - } - - $hasCourses = 0 < count($date->getServicesGeneral('KUR')); + $hasCourses = null !== $date && 0 < count($date->getServicesGeneral('KUR')); $this->view->assign('travelinfo', $travelinfo); $this->view->assign('date', $date); diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html index 39011450..3067f835 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html @@ -44,9 +44,11 @@ {travelinfo.headline} {travelinfo.introText -> f:format.html()} -
- {date.product.name} {date.dateStart -> f:format.date(format: 'd.m.Y')} - {date.dateEnd -> f:format.date(format: 'd.m.Y')} -
++ {date.product.name} {date.dateStart -> f:format.date(format: 'd.m.Y')} - {date.dateEnd -> f:format.date(format: 'd.m.Y')} +
+
- {date.hotel.name}
-
- {date.hotel.address -> f:format.nl2br()}
-
+ {date.hotel.name}
+
+ {date.hotel.address -> f:format.nl2br()}
+
- {date.board} -
++ {date.board} +
+