Fix only single hotel being added to xml export
This commit is contained in:
@@ -83,7 +83,7 @@ class ResellerService implements SingletonInterface
|
|||||||
$hotelData = \EP\EpProducts\Domain\Serialization\Hotel::fromEntity($hotel);
|
$hotelData = \EP\EpProducts\Domain\Serialization\Hotel::fromEntity($hotel);
|
||||||
$dates = $this->productRepository->getDatesForExport($product, $hotel);
|
$dates = $this->productRepository->getDatesForExport($product, $hotel);
|
||||||
$hotelData->dates['date'] = $this->preprocessDates($dates);
|
$hotelData->dates['date'] = $this->preprocessDates($dates);
|
||||||
$data->hotels['hotel'] = $hotelData;
|
$data->hotels['hotel'][] = $hotelData;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user