Adopt changes in master branch

This commit is contained in:
Björn Fromme
2022-03-03 12:53:00 +01:00
parent 5fbe275b74
commit 15a65e39f6
@@ -117,9 +117,13 @@ class ResellerDataService implements SingletonInterface
{
/** @var Hotel $hotel */
$hotelData = SerializedHotel::fromEntity($hotel);
$dates = $this->productRepository->getDatesForExport($product, $hotel);
$hotelData['dates']['date'] = $this->preprocessDates($dates, $paCode);
$data['hotels']['hotel'][] = $hotelData;
if (false === $product->getBookable()) {
$hotelData['dates']['date'] = [];
} else {
$dates = $this->productRepository->getDatesForExport($product, $hotel);
$hotelData['dates']['date'] = $this->preprocessDates($dates, $paCode);
}
}
return $data;