From cc845848ed88c199da7da689b6254a1dcf279368 Mon Sep 17 00:00:00 2001 From: matx132 Date: Mon, 27 Nov 2023 13:11:59 +0100 Subject: [PATCH] IBX-7207: Added cast to int contentId and fromVersionNo --- src/lib/Form/Processor/ContentFormProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');