Do not break import if region could not be found

This commit is contained in:
Daniel Siepmann 2021-09-07 12:19:49 +02:00
parent 1f769939b4
commit 6226fb32d4

View file

@ -265,7 +265,9 @@ class DestinationDataImportService
$this->tmpCurrentEvent->setLanguageUid(-1);
// Set selected Region
$this->tmpCurrentEvent->setRegion($selectedRegion);
if ($selectedRegion !== null) {
$this->tmpCurrentEvent->setRegion($selectedRegion);
}
// Set Title
$this->tmpCurrentEvent->setTitle(substr($event['title'], 0, 254));