Skip to content

Commit dbd22bf

Browse files
authored
Merge pull request #85 from sitegeist/mficzel-patch-2
BUGFIX: Fix error when no strings were translated
2 parents 0fe9f10 + a0a91a2 commit dbd22bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/ContentRepository/NodeTranslationService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ public function translateNode(NodeInterface $sourceNode, NodeInterface $targetNo
316316
$translatedPropertiesDeflated = $this->translationService->translate($propertiesToTranslateDeflated, $targetLanguage, $sourceLanguage);
317317
$translatedProperties = ArrayFlatteningUtility::enflate($translatedPropertiesDeflated);
318318
$properties = array_merge($translatedProperties, $properties);
319+
} else {
320+
$translatedProperties = [];
319321
}
320322

321323
foreach ($properties as $propertyName => $propertyValue) {

0 commit comments

Comments
 (0)