From d7b53714cfa1931ec7dcc8e80103c9cfe8bae007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Parafi=C5=84ski?= Date: Wed, 29 May 2019 16:27:44 +0200 Subject: [PATCH] EZP-29694: Publish Version only in draft modified language --- lib/Form/Processor/ContentFormProcessor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Form/Processor/ContentFormProcessor.php b/lib/Form/Processor/ContentFormProcessor.php index 7bc436095..d90363c5f 100644 --- a/lib/Form/Processor/ContentFormProcessor.php +++ b/lib/Form/Processor/ContentFormProcessor.php @@ -118,7 +118,8 @@ public function processPublish(FormActionEvent $event) $form = $event->getForm(); $draft = $this->saveDraft($data, $form->getConfig()->getOption('languageCode')); - $content = $this->contentService->publishVersion($draft->versionInfo); + $versionInfo = $draft->versionInfo; + $content = $this->contentService->publishVersion($versionInfo, [$versionInfo->initialLanguageCode]); $event->setPayload('content', $content); $event->setPayload('is_new', $draft->contentInfo->isDraft());