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