diff --git a/web/typo3conf/ext/ep_products/Classes/Domain/Model/FilterSettings.php b/web/typo3conf/ext/ep_products/Classes/Domain/Model/FilterSettings.php index c84dc51d..1118fb05 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Model/FilterSettings.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Model/FilterSettings.php @@ -224,7 +224,9 @@ class FilterSettings implements \JsonSerializable $dateTo = new \DateTime($searchParams['date_to']); $filterSettings->setDateTo($dateTo); } - + if (!empty($searchParams['pax']) && (int) $searchParams['pax'] > 0) { + $filterSettings->setPax($searchParams['pax']); + } return $filterSettings; } diff --git a/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_staticsearchparams.php b/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_staticsearchparams.php index 52f38b61..4f94396f 100644 --- a/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_staticsearchparams.php +++ b/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_staticsearchparams.php @@ -23,12 +23,12 @@ return [ ], 'interface' => [ 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, path_segment, - country, region, concept, hotel, product, date_from, date_to, hotel_types, bus', + country, region, concept, hotel, product, date_from, date_to, hotel_types, bus, pax', ], 'types' => [ '1' => [ 'showitem' => 'name, path_segment, country, region, concept, hotel, product, date_from, - date_to, hotel_types, bus', + date_to, hotel_types, bus, pax', ], ], 'palettes' => [], @@ -250,5 +250,14 @@ return [ 'renderType' => 'inputDateTime', ] ], + 'pax' => [ + 'exclude' => 0, + 'label' => 'Personen', + 'config' => [ + 'type' => 'input', + 'size' => 2, + 'eval' => 'int', + ] + ] ], ]; diff --git a/web/typo3conf/ext/ep_products/ext_tables.sql b/web/typo3conf/ext/ep_products/ext_tables.sql index 4c4975e9..3dcb171f 100644 --- a/web/typo3conf/ext/ep_products/ext_tables.sql +++ b/web/typo3conf/ext/ep_products/ext_tables.sql @@ -1055,6 +1055,7 @@ CREATE TABLE tx_epproducts_domain_model_staticsearchparams ( region int(11) unsigned DEFAULT '0', hotel int(11) unsigned DEFAULT '0', hotel_types varchar(255) DEFAULT '' NOT NULL, + pax int(11) unsigned DEFAULT '0', tstamp int(11) unsigned DEFAULT '0' NOT NULL, crdate int(11) unsigned DEFAULT '0' NOT NULL,