From eb748554ad458bee9ef234486abdfbc19ff26b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 2 Oct 2018 18:40:25 +0200 Subject: [PATCH] Add optional services to daytrip data --- .../Classes/Domain/Repository/ContingentRepository.php | 3 ++- .../ext/ep_products/Classes/Service/ContingentDataService.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php b/web/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php index 35a6e212..7993ff9f 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php @@ -139,7 +139,8 @@ class ContingentRepository extends AbstractRepository implements ProviderInterfa $qb ->select('c.room_code as code', 'c.room_label as label', 'c.available as available', 'c.min_price as price', 'c.hotel_bus_pro_id as hotelBusProId', 'd.bus_pro_id as busProId', - 'd.services_included as servicesIncluded', 'd.skipass_included as skipassIncluded') + 'd.services_included as servicesIncluded', 'd.services_general as servicesOptional', + 'd.skipass_included as skipassIncluded') ->from('tx_epproducts_domain_model_contingent', 'c') ->innerJoin('c', 'tx_epproducts_domain_model_date', 'd', 'c.date = d.date_start AND c.hotel_code = d.hotel_code') ->where('c.hotel = :hotelUid') diff --git a/web/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php b/web/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php index 04a0ccdc..43566ad3 100644 --- a/web/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php +++ b/web/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php @@ -70,6 +70,7 @@ class ContingentDataService ]); $row['servicesIncluded'] = unserialize($row['servicesIncluded']); + $row['servicesOptional'] = unserialize($row['servicesOptional']); $rooms[] = $row; }