From 8b62ef9e61d73e2b77ee32b46b078395e01da2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 26 Jun 2018 17:30:20 +0200 Subject: [PATCH] Fix missed or misspelled properties --- .../ext/ep_products/Classes/Domain/Serialization/Room.php | 4 +++- .../ext/ep_products/Classes/Service/ResellerService.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Room.php b/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Room.php index 5a21bf66..7bf8b669 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Room.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Room.php @@ -52,7 +52,7 @@ class Room /** * @var string */ - public $nigthts; + public $nights; /** * @var string @@ -70,6 +70,8 @@ class Room $room->name = $array['roomName']; $room->price = $array['roomPrice']; $room->busprice = $array['busPrice']; + $room->nights = $array['roomNights']; + $room->available = $array['roomAvailable']; foreach (unserialize($array['roomOptionalServices']) as $row) { diff --git a/web/typo3conf/ext/ep_products/Classes/Service/ResellerService.php b/web/typo3conf/ext/ep_products/Classes/Service/ResellerService.php index 2d8d7b24..03958165 100644 --- a/web/typo3conf/ext/ep_products/Classes/Service/ResellerService.php +++ b/web/typo3conf/ext/ep_products/Classes/Service/ResellerService.php @@ -104,7 +104,7 @@ class ResellerService implements SingletonInterface $data[$row['dateStart']] = $date; } - $date->rooms[] = Room::fromArray($row); + $date->rooms['room'][] = Room::fromArray($row); } return array_values($data);