Skip to content

Commit

Permalink
BUGFIX: NodeInfoHelper::isAutoCreated handle nodeName == null
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jun 1, 2023
1 parent b2222ab commit 4a22948
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Fusion/Helper/NodeInfoHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ protected function getBasicNodeInformation(Node $node): array

public static function isAutoCreated(Node $node, ContentSubgraphInterface $subgraph): bool
{
if (!$node->nodeName) {
return false;
}
$parent = $subgraph->findParentNode($node->nodeAggregateId);
if ($parent) {
if (array_key_exists($node->nodeName->value, $parent->nodeType->getAutoCreatedChildNodes())) {
Expand Down

0 comments on commit 4a22948

Please sign in to comment.