diff --git a/Classes/Domain/Finishers/MauticFinisher.php b/Classes/Domain/Finishers/MauticFinisher.php index 2f4b639..54dac98 100644 --- a/Classes/Domain/Finishers/MauticFinisher.php +++ b/Classes/Domain/Finishers/MauticFinisher.php @@ -39,10 +39,10 @@ protected function executeInternal() { $formDefinition = $this->finisherContext->getFormRuntime()->getFormDefinition()->getRenderingOptions(); - if (empty($this->parseOption('mauticId'))) { + $mauticId = (int) $this->parseOption('mauticId'); + + if (empty($mauticId)) { $mauticId = (int) $formDefinition['mauticId']; - } else { - $mauticId = (int) $this->parseOption('mauticId'); } if (!$this->mauticService->checkConfigPresent()) {