Fix incorrect property name

This commit is contained in:
Björn Fromme
2020-03-13 13:29:53 +01:00
parent 0c29c75744
commit 2f70c45886
2 changed files with 5 additions and 5 deletions
@@ -263,7 +263,7 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements
/** /**
* @var string * @var string
*/ */
protected $nonBookableDateUids; protected $nonBookableDates;
public function __construct() public function __construct()
{ {
@@ -1060,9 +1060,9 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements
/** /**
* @return string * @return string
*/ */
public function getNonBookableDateUids() public function getNonBookableDates()
{ {
return $this->nonBookableDateUids; return $this->nonBookableDates;
} }
} }
@@ -103,7 +103,7 @@ class DateService implements SingletonInterface
$filterSettings = $this->filterService->getDefaultFilterSettings(); $filterSettings = $this->filterService->getDefaultFilterSettings();
} }
$nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDateUids(), true); $nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDates(), true);
return $this->preprocessPriceTable([ return $this->preprocessPriceTable([
'priceTableData' => $this->productRepository->getPricetable($product, $hotel, $filterSettings, $date), 'priceTableData' => $this->productRepository->getPricetable($product, $hotel, $filterSettings, $date),
@@ -149,7 +149,7 @@ class DateService implements SingletonInterface
$filterSettings = $this->filterService->getDefaultFilterSettings(); $filterSettings = $this->filterService->getDefaultFilterSettings();
} }
$nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDateUids(), true); $nonBookableDateUids = GeneralUtility::trimExplode(',', $product->getNonBookableDates(), true);
$dateTableData = $this->productRepository->getAvailableDates( $dateTableData = $this->productRepository->getAvailableDates(
$product, $product,