Revoke daytrip teaser fix
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user