Skip to content

Commit

Permalink
IBX-7207: Added cast to int contentId and fromVersionNo (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski authored Jan 24, 2024
1 parent d8c2f85 commit 45aa0a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Form/Processor/ContentFormProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 45aa0a1

Please sign in to comment.