Revoke daytrip teaser fix

This commit is contained in:
Björn Fromme
2021-10-14 13:03:01 +02:00
parent 96f0cb9271
commit 62f0f88769
2 changed files with 3 additions and 4 deletions
@@ -48,7 +48,6 @@ class ProductViewHelper extends AbstractViewHelper
$this->registerArgument('dateFrom', 'string', 'Date to limit table on detail page by (Y-m-d)');
$this->registerArgument('dateTo', 'string', 'Date to limit table on detail page by (Y-m-d)');
$this->registerArgument('forceHotelUid', 'bool', 'Whether to force link a hotel');
$this->registerArgument('dayTrip', 'bool', 'Whether product is a daytrip');
$this->registerArgument('slug', 'string', 'Slug to append to resulting uri');
}
@@ -74,7 +73,7 @@ class ProductViewHelper extends AbstractViewHelper
'product' => is_array($product) ? $product['uid'] : $product,
'hotel' => is_array($hotel) ? $hotel['uid'] : $hotel,
];
} elseif (false === (bool)$arguments['dayTrip'] && ($arguments['dateFrom'] || $arguments['dateTo'])) {
} elseif ($arguments['dateFrom'] || $arguments['dateTo']) {
$linkArguments = [
'dateFrom' => $arguments['dateFrom'],
'dateTo' => $arguments['dateTo'],