Fixed introduced bug in node flattening

This commit is contained in:
Jan Böhmer 2024-12-28 23:19:55 +01:00
parent 946032a101
commit a37b8cbb15

View file

@ -104,7 +104,7 @@ class NodesListBuilder
$repo = $this->em->getRepository($class_name);
return array_map(static fn(AbstractDBElement $element) => $element->getID(),
$repo instanceof AbstractStructuralDBElement ? $repo->getFlatList($parent) : $repo->getFlatList());
$repo instanceof StructuralDBElementRepository ? $repo->getFlatList($parent) : $repo->getFlatList());
});
}