diff --git a/src/lib/Form/Processor/ContentFormProcessor.php b/src/lib/Form/Processor/ContentFormProcessor.php index a0c0a4d..b9b3806 100644 --- a/src/lib/Form/Processor/ContentFormProcessor.php +++ b/src/lib/Form/Processor/ContentFormProcessor.php @@ -204,8 +204,8 @@ public function processCreateDraft(FormActionEvent $event) /** @var $createContentDraft \EzSystems\EzPlatformContentForms\Data\Content\CreateContentDraftData */ $createContentDraft = $event->getData(); - $contentInfo = $this->contentService->loadContentInfo($createContentDraft->contentId); - $versionInfo = $this->contentService->loadVersionInfo($contentInfo, $createContentDraft->fromVersionNo); + $contentInfo = $this->contentService->loadContentInfo((int)$createContentDraft->contentId); + $versionInfo = $this->contentService->loadVersionInfo($contentInfo, (int)$createContentDraft->fromVersionNo); $contentDraft = $this->contentService->createContentDraft($contentInfo, $versionInfo); $referrerLocation = $event->getOption('referrerLocation');