Remove superfluous code

This commit is contained in:
Björn Fromme
2018-10-04 14:57:53 +02:00
parent a9ef2a1c48
commit c64bb68976
@@ -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,
]);