Fix only single hotel being added to xml export

This commit is contained in:
Björn Fromme
2018-07-02 16:16:12 +02:00
parent b65ddc386c
commit 36fc81a1a3
@@ -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;