From 2d7d1a1d517c528a46ebc228d37f9166bde9455c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 18 Jun 2026 09:56:28 +0200 Subject: [PATCH] fix: correctly determine room status on date import --- .../ext/ep_products/Classes/Service/DateImportService.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php index 205f61c4..91a7b271 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php @@ -634,9 +634,12 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface $minPriceOverall = $price; } - if ($roomXml->attributes()['status'] === static::STATUS_STOP && $price) { + // Determine status + $statusXml = (string) $roomXml->attributes()['status']; + + if (static::STATUS_STOP === $statusXml && $price) { $status = Room::ROOM_STATUS_FULLY_BOOKED; - } elseif ($roomXml->attributes()['status'] === static::STATUS_ON_REQUEST) { + } elseif (static::STATUS_ON_REQUEST === $statusXml) { $status = Room::ROOM_STATUS_ON_REQUEST; } else { $status = Room::ROOM_STATUS_AVAILABLE;