Prepopulate configurator form

This commit is contained in:
Björn Fromme
2018-07-31 14:41:59 +02:00
parent 340261220c
commit 6160703361
5 changed files with 40 additions and 8 deletions
@@ -78,7 +78,10 @@ class OfferProcessor implements DataProcessorInterface
$configuratorType = $offer->getConfiguratorType();
/** @var \EP\EpEvents\Domain\Repository\TraveltypeRepository $repository */
$repository = $objectManager->get(TraveltypeRepository::class);
$processedData['travelType'] = $repository->findOneByConfiguratorType($configuratorType);
$processedData['traveltype'] = $repository->findOneByConfiguratorType($configuratorType);
}
if ($offer->getLocation()) {
$processedData['locationtype'] = $offer->getLocation()->getConfiguratorType();
}
$processedData['search'] = GeneralUtility::_GET('search');
return $processedData;