From ab2b840dc58f7f45578f373d187fa71bab85665d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 29 Oct 2026 16:05:45 +0100 Subject: [PATCH] feat: search result teasers list all bookable nights options Search teasers showed only the nights of the cheapest offer, while teaser groups list every option. They now list all nights options next to the cheapest "ab" price, like teaser groups and the watchlist do. All search filters are applied in SQL before the rows are aggregated, so the list only holds options matching the active filters (e.g. the duration filter). Co-Authored-By: Claude Opus 5.5 --- packages/ep_products/Classes/Service/SearchResultService.php | 2 -- packages/ep_theme/Resources/Private/Partials/Search/Result.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/ep_products/Classes/Service/SearchResultService.php b/packages/ep_products/Classes/Service/SearchResultService.php index cd64d73..0143cd5 100644 --- a/packages/ep_products/Classes/Service/SearchResultService.php +++ b/packages/ep_products/Classes/Service/SearchResultService.php @@ -128,7 +128,6 @@ class SearchResultService implements SingletonInterface 'boardUid' => ($row['boardUid'] ?? null), 'dates' => [], 'nights' => [], - 'teaserNights' => [], 'rooms' => [], 'new' => ($row['new'] ?? null), 'skiPassIncluded' => ($row['skiPassIncluded'] ?? null), @@ -199,7 +198,6 @@ class SearchResultService implements SingletonInterface || $item['minPrice'] > ($row['minPrice'] ?? null)) { $item['minPrice'] = ($row['minPrice'] ?? null); // Teaser-specific offer data must describe the cheapest row. - $item['teaserNights'] = [($row['nights'] ?? null)]; $item['board'] = ($row['board'] ?? null); $item['boardUid'] = ($row['boardUid'] ?? null); $item['daytrip'] = ($row['daytrip'] ?? null); diff --git a/packages/ep_theme/Resources/Private/Partials/Search/Result.html b/packages/ep_theme/Resources/Private/Partials/Search/Result.html index 348b16a..f72fb55 100644 --- a/packages/ep_theme/Resources/Private/Partials/Search/Result.html +++ b/packages/ep_theme/Resources/Private/Partials/Search/Result.html @@ -91,7 +91,7 @@ country: item.country, region: item.region, productImage: searchProductImage, - nights: item.teaserNights, + nights: item.nights, board: item.board, minPrice: item.minPrice, daytrip: item.daytrip,