fix: properly assign product data to search result teasers

This commit is contained in:
Björn Fromme
2024-02-22 11:44:12 +01:00
parent 34fffae03c
commit d7e44a94ab
3 changed files with 4 additions and 3 deletions
@@ -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',
@@ -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'],
@@ -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,