Merge branch 'release/2020.07-04'
This commit is contained in:
@@ -360,7 +360,7 @@ class ProductRepository extends AbstractRepository
|
|||||||
'date.hotel_category as hotelCategory',
|
'date.hotel_category as hotelCategory',
|
||||||
'room.pax as roomPax', 'room.price as roomPrice', 'room.available as available',
|
'room.pax as roomPax', 'room.price as roomPrice', 'room.available as available',
|
||||||
'room.pax as roomPax', 'room.price as roomPrice', 'room.available as available',
|
'room.pax as roomPax', 'room.price as roomPrice', 'room.available as available',
|
||||||
'hotel.detail_page as hotelDetailPageUid', 'hotel.short_name as hotelShortName'
|
'hotel.detail_page as hotelDetailPageUid', 'hotel.short_name as hotelShortName', 'hotel.show_as_teaser as hotelShowAsTeaser'
|
||||||
)
|
)
|
||||||
->from('tx_epproducts_domain_model_date', 'date')
|
->from('tx_epproducts_domain_model_date', 'date')
|
||||||
->innerJoin('date', 'tx_epproducts_domain_model_room', 'room', 'room.date = date.uid')
|
->innerJoin('date', 'tx_epproducts_domain_model_room', 'room', 'room.date = date.uid')
|
||||||
|
|||||||
@@ -416,6 +416,10 @@ class DateService implements SingletonInterface
|
|||||||
|
|
||||||
foreach ($priceTableData as $row)
|
foreach ($priceTableData as $row)
|
||||||
{
|
{
|
||||||
|
// Skip hotels in price table that are not shown as teasers
|
||||||
|
if (!$row['hotelShowAsTeaser']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$categoryUid = $row['hotelCategory'];
|
$categoryUid = $row['hotelCategory'];
|
||||||
$hotelUid = $row['hotelUid'];
|
$hotelUid = $row['hotelUid'];
|
||||||
$hotelUri = $this->uriBuilder
|
$hotelUri = $this->uriBuilder
|
||||||
|
|||||||
Reference in New Issue
Block a user