From d7e44a94ab20b2b9a85b5f634abc58a04d81322c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 22 Feb 2024 11:44:12 +0100 Subject: [PATCH] fix: properly assign product data to search result teasers --- .../Classes/Domain/Repository/ProductRepository.php | 2 +- .../ext/ep_products/Classes/Service/SearchResultService.php | 1 + .../ep_theme/Resources/Private/Partials/Search/Result.html | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ProductRepository.php b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ProductRepository.php index b2769e1b..f8b7f5c9 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ProductRepository.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ProductRepository.php @@ -65,7 +65,7 @@ class ProductRepository extends AbstractRepository 'date.country_code as countryCode', 'date.region as regionUid', 'date.region_name as regionName', 'date.region_feature as regionFeature', 'date.date_start as dateStart', 'date.date_end as dateEnd', 'date.hotel as hotelUid', 'date.hotel_name as hotelName', 'date.hotel_category as hotelCategory', - 'date.hotel_type as hotelType', + 'date.hotel_type as hotelType', 'date.season as season', 'date.earlybird as earlybird', 'date.new as new', 'date.low_contingent as lowContingent', 'date.board as board', 'date.board_bus_pro_id as boardUid', 'date.product_fact as productFact', 'date.hotel_fact as hotelFact', 'date.region_fact as regionFact', diff --git a/public/typo3conf/ext/ep_products/Classes/Service/SearchResultService.php b/public/typo3conf/ext/ep_products/Classes/Service/SearchResultService.php index 6ddfa908..02e59ec0 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/SearchResultService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/SearchResultService.php @@ -118,6 +118,7 @@ class SearchResultService implements SingletonInterface 'detailPageUri' => null, 'earlybird' => $row['earlybird'], 'daytrip' => $row['daytrip'], + 'season' => $row['season'], 'hideBookingButton' => $row['hideBookingButton'], 'busAvailable' => $row['busAvailable'], 'lowContingent' => $row['lowContingent'], diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Result.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Result.html index 0f03882d..268ac9a8 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Result.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Result.html @@ -77,8 +77,8 @@ nights: item.nights, board: item.board, minPrice: item.minPrice, - daytrip: product.daytrip, - season: product.season, + daytrip: item.daytrip, + season: item.season, dateFrom: item.minDateStart, dateTo: item.maxDateEnd, forceHotelUid: 1,