From c6ae64f9201044984ff5e304bb98169a870e46f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Sun, 2 Dec 2018 13:57:06 +0100 Subject: [PATCH] Fix incorrect skipping of control type rooms on import --- .../ext/ep_products/Classes/Service/ContingentImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php b/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php index db97c38b..077725de 100644 --- a/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php +++ b/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php @@ -245,7 +245,7 @@ class ContingentImportService implements SingletonInterface $availableRooms = (int) $xmlRoom['frei'] > 0 ? (int) $xmlRoom['frei'] : 0; $availablePax = $availableRooms * $roomType['pax']; } - if ($availablePax === 0) { + if ($availablePax === 0 && $roomType['ctrl'] === false) { continue; } $minPrice = (int) $xmlRoom['abpreis'];