Adopt changes in master branch
This commit is contained in:
@@ -117,9 +117,13 @@ class ResellerDataService implements SingletonInterface
|
|||||||
{
|
{
|
||||||
/** @var Hotel $hotel */
|
/** @var Hotel $hotel */
|
||||||
$hotelData = SerializedHotel::fromEntity($hotel);
|
$hotelData = SerializedHotel::fromEntity($hotel);
|
||||||
$dates = $this->productRepository->getDatesForExport($product, $hotel);
|
|
||||||
$hotelData['dates']['date'] = $this->preprocessDates($dates, $paCode);
|
|
||||||
$data['hotels']['hotel'][] = $hotelData;
|
$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;
|
return $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user