From fc66f297e23ee331c20e7efa020a621c5d741fd7 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 12 Nov 2019 19:34:50 +0100 Subject: [PATCH] Add comment toe templateMapper --- .../ContentDimensionFactory/Mapper/TemplateMapper.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content/Application/ContentDimensionFactory/Mapper/TemplateMapper.php b/Content/Application/ContentDimensionFactory/Mapper/TemplateMapper.php index 1e793593..a0ad760a 100644 --- a/Content/Application/ContentDimensionFactory/Mapper/TemplateMapper.php +++ b/Content/Application/ContentDimensionFactory/Mapper/TemplateMapper.php @@ -60,7 +60,10 @@ public function map( $localizedContentDimension->setTemplateKey($template); $localizedContentDimension->setTemplateData($localizedData); - } else { + } + + if (!$localizedContentDimension) { + // Only set templateKey to unlocalizedDimension when no localizedDimension exist $contentDimension->setTemplateKey($template); }