From 57446c604d03bcf41f40a8e474da161170e601a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Wed, 6 Jun 2018 17:24:31 +0200 Subject: [PATCH] Fix hotel name and category not rendered in teaser --- .../ext/ep_products/Classes/Service/ProductService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/typo3conf/ext/ep_products/Classes/Service/ProductService.php b/web/typo3conf/ext/ep_products/Classes/Service/ProductService.php index 7d3058c8..f19a97ae 100644 --- a/web/typo3conf/ext/ep_products/Classes/Service/ProductService.php +++ b/web/typo3conf/ext/ep_products/Classes/Service/ProductService.php @@ -140,7 +140,7 @@ class ProductService implements SingletonInterface $teaser['minPrice'] = $row['minPrice']; } - if ($teaser['hotelUid'] !== $row['hotelUid']) { + if ($teaser['hotel']['uid'] !== $row['hotelUid']) { $teaser['hotelCount']++; } } @@ -166,7 +166,7 @@ class ProductService implements SingletonInterface 'minDateStart' => null, 'maxDateEnd' => null, 'minPrice' => null, - 'hotelCount' => 0, + 'hotelCount' => 1, 'pseudoPrice' => $teaserData['pseudoPrice'], 'board' => $teaserData['board'], 'earlybird' => $teaserData['earlybird'],