Skip to content

Commit

Permalink
BUGFIX: Fix Neos.Neos:FallbackNode rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Sep 25, 2023
1 parent 552a40a commit a8b12ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Neos.Neos/Classes/Fusion/Helper/NodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace Neos\Neos\Fusion\Helper;

use Neos\ContentRepository\Core\NodeType\NodeType;
use Neos\ContentRepository\Core\Projection\ContentGraph\AbsoluteNodePath;
use Neos\ContentRepository\Core\Projection\ContentGraph\Filter\CountAncestorNodesFilter;
use Neos\ContentRepository\Core\Projection\ContentGraph\Filter\FindAncestorNodesFilter;
Expand All @@ -33,7 +34,9 @@
*/
class NodeHelper implements ProtectedContextAwareInterface
{
use NodeTypeWithFallbackProvider;
use NodeTypeWithFallbackProvider {
getNodeType as getNodeTypeInternal;
}

#[Flow\Inject]
protected ContentRepositoryRegistry $contentRepositoryRegistry;
Expand Down Expand Up @@ -130,7 +133,12 @@ public function path(Node $node): string
*/
public function isOfType(Node $node, string $nodeType): bool
{
return $this->getNodeType($node)->isOfType($nodeType);
return $this->getNodeTypeInternal($node)->isOfType($nodeType);
}

public function getNodeType(Node $node): NodeType
{
return $this->getNodeTypeInternal($node);
}

public function serializedNodeAddress(Node $node): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ prototype(Neos.Neos:ContentCase) < prototype(Neos.Fusion:Case) {
default {
@position = 'end'
condition = true
type = ${node.nodeType.name}
type = ${Neos.Node.getNodeType(node).name}
}
}

0 comments on commit a8b12ff

Please sign in to comment.