From 00ddd1c603b3c582248f54fdbf4b58d38a847e14 Mon Sep 17 00:00:00 2001 From: freund0 <36633130+freund0@users.noreply.github.com> Date: Tue, 30 Apr 2019 12:29:40 +0200 Subject: [PATCH] Fix UriPathSegment for hierarchy Previously the node name was always stored as URI path segment because the fallback check checked a property that wasn't set. --- Classes/Service/HierarchyService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Service/HierarchyService.php b/Classes/Service/HierarchyService.php index 84d6ad0..5210036 100644 --- a/Classes/Service/HierarchyService.php +++ b/Classes/Service/HierarchyService.php @@ -131,7 +131,7 @@ protected function buildHierarchyLevel(NodeInterface $parentNode, array $hierarc $this->applyProperties($hierarchyLevelNodeTemplate, $hierarchyLevelConfiguration['properties'], $context); } - if ($hierarchyLevelNodeType->isOfType('Neos.Neos:Document') && !isset($this->properties['uriPathSegment'])) { + if ($hierarchyLevelNodeType->isOfType('Neos.Neos:Document') && !isset($hierarchyLevelConfiguration['properties']['uriPathSegment'])) { $hierarchyLevelNodeTemplate->setProperty('uriPathSegment', $hierarchyLevelNodeTemplate->getName()); }