Skip to content

Commit a37b8cb

Browse files
committed
Fixed introduced bug in node flattening
1 parent 946032a commit a37b8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/Trees/NodesListBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private function getFlattenedIDs(string $class_name, ?AbstractStructuralDBElemen
104104
$repo = $this->em->getRepository($class_name);
105105

106106
return array_map(static fn(AbstractDBElement $element) => $element->getID(),
107-
$repo instanceof AbstractStructuralDBElement ? $repo->getFlatList($parent) : $repo->getFlatList());
107+
$repo instanceof StructuralDBElementRepository ? $repo->getFlatList($parent) : $repo->getFlatList());
108108
});
109109
}
110110

0 commit comments

Comments
 (0)