From 6226fb32d40809a9d1c516f9da1f977b57192406 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 7 Sep 2021 12:19:49 +0200 Subject: [PATCH] Do not break import if region could not be found --- Classes/Service/DestinationDataImportService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/Service/DestinationDataImportService.php b/Classes/Service/DestinationDataImportService.php index 68caa82..b2e7033 100644 --- a/Classes/Service/DestinationDataImportService.php +++ b/Classes/Service/DestinationDataImportService.php @@ -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));