From 2f70c458860f940d4dc571df7d8c47fbd10ec345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 13 Mar 2020 13:29:53 +0100 Subject: [PATCH] Fix incorrect property name --- .../ext/ep_products/Classes/Domain/Model/Product.php | 6 +++--- .../ext/ep_products/Classes/Service/DateService.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php index 8a176bd3..29a8e808 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php @@ -263,7 +263,7 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements /** * @var string */ - protected $nonBookableDateUids; + protected $nonBookableDates; public function __construct() { @@ -1060,9 +1060,9 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements /** * @return string */ - public function getNonBookableDateUids() + public function getNonBookableDates() { - return $this->nonBookableDateUids; + return $this->nonBookableDates; } } diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php index 9de74d32..dbf2628e 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php @@ -103,7 +103,7 @@ class DateService implements SingletonInterface $filterSettings = $this->filterService->getDefaultFilterSettings(); } - $nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDateUids(), true); + $nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDates(), true); return $this->preprocessPriceTable([ 'priceTableData' => $this->productRepository->getPricetable($product, $hotel, $filterSettings, $date), @@ -149,7 +149,7 @@ class DateService implements SingletonInterface $filterSettings = $this->filterService->getDefaultFilterSettings(); } - $nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDateUids(), true); + $nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDates(), true); $dateTableData = $this->productRepository->getAvailableDates( $product,