From d017948210ddbd668599af067962c7029c7c0a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 17 Jul 2025 15:38:04 +0200 Subject: [PATCH] fix: accept link field values and page uids for hotel url generation --- .../ext/ep_products/Classes/Service/DateService.php | 6 +----- .../Private/Templates/AjaxTable/EventPricetable.html | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php index 5971ec80..26b2e284 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php @@ -355,10 +355,6 @@ class DateService implements SingletonInterface $categoryUid = Hotel::CATEGORY_STANDARD; } $hotelUid = $row['hotelUid']; - $hotelUri = $this->uriBuilder - ->reset() - ->setTargetPageUid((int)$row['hotelDetailPageUid']) - ->buildFrontendUri(); if (!array_key_exists($hotelUid, $priceTable[$categoryUid])) { $priceTable[$categoryUid][$hotelUid] = [ @@ -366,7 +362,7 @@ class DateService implements SingletonInterface 'hotelName' => $row['hotelName'], 'hotelShortName' => $row['hotelShortName'], 'hotelTitle' => $row['hotelTitle'], - 'hotelUri' => $hotelUri, + 'hotelDetailPageUid' => $row['hotelDetailPageUid'], 'bookingUrl' => BookingUrlUtility::generateUrl([ 'bookingId' => $row['dateBusProId'], 'hotelId' => $row['hotelBusProId'], diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html index c849b6ac..1ee07c1e 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html @@ -36,7 +36,7 @@ - + {row.hotelShortName} @@ -59,7 +59,7 @@ {row.rooms.{type}.price} {f:if(condition: '{row.rooms.{type}.undersubscription}', then: '*')}