Remove superfluous code
This commit is contained in:
@@ -148,7 +148,6 @@ class ProductController extends ActionController
|
||||
$hotel = reset($product->getHotels()->toArray());
|
||||
}
|
||||
}
|
||||
[ $productDateRangeFrom, $productDateRangeTo ] = $this->filterService->getProductDateRange($product, $filterSettings);
|
||||
$excludedConceptUids = GeneralUtility::trimExplode(',', $this->settings['excludedConceptUids']);
|
||||
$isProductWithExcludedConcept = ($product->getConcept() !== null) && \in_array($product->getConcept()->getUid(), $excludedConceptUids, false);
|
||||
$noInfoConceptUids = GeneralUtility::trimExplode(',', $this->settings['noInfoConceptUids']);
|
||||
@@ -157,8 +156,6 @@ class ProductController extends ActionController
|
||||
'filterSettings' => $filterSettings,
|
||||
'hotel' => $hotel,
|
||||
'product' => $product,
|
||||
'productDateRangeFrom' => $productDateRangeFrom,
|
||||
'productDateRangeTo' => $productDateRangeTo,
|
||||
'referringPageUid' => $referringPageUid,
|
||||
'currentPageUid' => $GLOBALS['TSFE']->id,
|
||||
'isProductWithExcludedConcept' => $isProductWithExcludedConcept,
|
||||
@@ -194,13 +191,10 @@ class ProductController extends ActionController
|
||||
)
|
||||
{
|
||||
$hotels = $this->hotelDataService->getList($product);
|
||||
[ $productDateRangeFrom, $productDateRangeTo ] = $this->filterService->getProductDateRange($product, $filterSettings);
|
||||
$this->view->assignMultiple([
|
||||
'filterSettings' => $filterSettings,
|
||||
'hotels' => $hotels,
|
||||
'product' => $product,
|
||||
'productDateRangeFrom' => $productDateRangeFrom,
|
||||
'productDateRangeTo' => $productDateRangeTo,
|
||||
'referringPageUid' => $referringPageUid,
|
||||
'linkHotel' => true,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user