Allow to show parts for manufacturers and footprints.

This commit is contained in:
Jan Böhmer 2019-09-08 13:59:35 +02:00
parent 8dc9c7b9ae
commit c3fd325645
10 changed files with 126 additions and 46 deletions

View file

@ -83,7 +83,7 @@ class TreeController extends AbstractController
if ($footprint !== null) {
$tree[] = $builder->elementToTreeNode($footprint);
} else {
$tree = $builder->typeToTree(Footprint::class, null);
$tree = $builder->typeToTree(Footprint::class);
}
@ -115,7 +115,7 @@ class TreeController extends AbstractController
if ($manufacturer !== null) {
$tree[] = $builder->elementToTreeNode($manufacturer);
} else {
$tree = $builder->typeToTree(Manufacturer::class, null);
$tree = $builder->typeToTree(Manufacturer::class);
}