Skip to content

Commit

Permalink
Merge pull request #6 from freund0/freund0-fixUriPathSegmentForHierarchy
Browse files Browse the repository at this point in the history
BUGFIX: Correctly set uriPathSegment for hierarchy
  • Loading branch information
daniellienert authored Apr 30, 2019
2 parents b6b949c + 00ddd1c commit 546f989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/HierarchyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 546f989

Please sign in to comment.