Skip to content

Commit

Permalink
IBX-7207: Added cast to int contentId and fromVersionNo
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski committed Nov 27, 2023
1 parent d8c2f85 commit cc84584
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 cc84584

Please # to comment.