From fd73284654d5e59cc873b97218f1ae6953441b44 Mon Sep 17 00:00:00 2001 From: Wim Vandersmissen Date: Tue, 19 Aug 2014 15:47:08 +0200 Subject: [PATCH] pagepartcreator service should be able to add pageparts to unpublished pages... --- Helper/Services/PagePartCreatorService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/Services/PagePartCreatorService.php b/Helper/Services/PagePartCreatorService.php index 2757743..80d36c4 100644 --- a/Helper/Services/PagePartCreatorService.php +++ b/Helper/Services/PagePartCreatorService.php @@ -80,7 +80,7 @@ public function addPagePartToPage($nodeOrInternalName, PagePartInterface $pagePa // Find the correct page instance. $node = $this->getNode($nodeOrInternalName); /** @var $translation NodeTranslation */ - $translation = $node->getNodeTranslation($language); + $translation = $node->getNodeTranslation($language, true); $page = $translation->getRef($this->em); // Find latest position.