mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed introduced bug in node flattening
This commit is contained in:
parent
946032a101
commit
a37b8cbb15
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class NodesListBuilder
|
||||||
$repo = $this->em->getRepository($class_name);
|
$repo = $this->em->getRepository($class_name);
|
||||||
|
|
||||||
return array_map(static fn(AbstractDBElement $element) => $element->getID(),
|
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());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue