Enable multiple concepts for static search params
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace EP\EpProducts\Domain\Model;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
@@ -199,7 +201,8 @@ class FilterSettings implements \JsonSerializable
|
||||
$filterSettings->setRegionUids([$searchParams['region']]);
|
||||
}
|
||||
if (!empty($searchParams['concept'])) {
|
||||
$filterSettings->setConceptUids([$searchParams['concept']]);
|
||||
$conceptUids = GeneralUtility::trimExplode(',', $searchParams['concept']);
|
||||
$filterSettings->setConceptUids($conceptUids);
|
||||
}
|
||||
if (!empty($searchParams['hotel'])) {
|
||||
$filterSettings->setHotelUid($searchParams['hotel']);
|
||||
|
||||
+3
-2
@@ -149,11 +149,12 @@ return [
|
||||
'label' => 'Konzept',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'renderType' => 'selectSingleBox',
|
||||
'foreign_table' => 'tx_epproducts_domain_model_concept',
|
||||
'foreign_table_where' => 'AND 1=1 ORDER BY name',
|
||||
'minItems' => 0,
|
||||
'maxitems' => 1,
|
||||
'maxitems' => 10,
|
||||
'size' => 5,
|
||||
'items' => [
|
||||
[ 'Keine Auswahl', 0 ],
|
||||
]
|
||||
|
||||
@@ -1034,7 +1034,7 @@ CREATE TABLE tx_epproducts_domain_model_staticsearchparams (
|
||||
date_to date DEFAULT '0000-00-00',
|
||||
bus tinyint(1) unsigned DEFAULT '0' NOT NULL,
|
||||
product int(11) unsigned DEFAULT '0',
|
||||
concept int(11) unsigned DEFAULT '0',
|
||||
concept varchar(255) DEFAULT '' NOT NULL,
|
||||
country int(11) unsigned DEFAULT '0',
|
||||
region int(11) unsigned DEFAULT '0',
|
||||
hotel int(11) unsigned DEFAULT '0',
|
||||
|
||||
Reference in New Issue
Block a user