Skip to content

Commit 7c21f97

Browse files
ViniToualongosz
authored andcommitted
EZP-29694: Changed publishing to publish last modified transl. (#296)
1 parent 1711f2f commit 7c21f97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Form/Processor/ContentFormProcessor.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public function processPublish(FormActionEvent $event)
118118
$form = $event->getForm();
119119

120120
$draft = $this->saveDraft($data, $form->getConfig()->getOption('languageCode'));
121-
$content = $this->contentService->publishVersion($draft->versionInfo);
121+
$versionInfo = $draft->versionInfo;
122+
$content = $this->contentService->publishVersion($versionInfo, [$versionInfo->initialLanguageCode]);
122123

123124
$event->setPayload('content', $content);
124125
$event->setPayload('is_new', $draft->contentInfo->isDraft());

0 commit comments

Comments
 (0)