From 2f044c1719535ee108f272bafd2af1fe148ad851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 18 Jun 2020 09:29:23 +0200 Subject: [PATCH] Restore original behavior in import service regarding availability --- .../ep_products/Classes/Service/DateImportService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php index dbb22c2f..f6a8401c 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php @@ -554,13 +554,13 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface $price = (int) $roomXml->attributes()['preis']; // Skip all unavailable rooms - if (!$available) { +// if (!$available) { +// continue; +// } + // Skip rooms with zero price _and_ zero availability. + if (!$available && !$price) { continue; } - // Skip rooms with zero price and zero availability. - //if (!$available && !$price) { - // continue; - //} $pax = (int) $roomXml->attributes()['MaxPax']; $availableTotal += $available * $pax;