Korrigiere Route und Objekttyp

This commit is contained in:
Marcel Diegelmann 2025-09-24 13:23:56 +02:00
parent 9a037e9adc
commit dc4461d0e9
2 changed files with 3 additions and 2 deletions

View file

@ -206,7 +206,7 @@ final class PartController extends AbstractController
#[Route(path: '/new', name: 'part_new')]
#[Route(path: '/{id}/clone', name: 'part_clone')]
#[Route(path: '/new_build_part_project/{project_id}', name: 'part_new_build_part')]
#[Route(path: '/new_build_part_project/{project_id}', name: 'part_new_build_part_project')]
#[Route(path: '/new_build_part_assembly/{assembly_id}', name: 'part_new_build_part_assembly')]
public function new(
Request $request,

View file

@ -36,6 +36,7 @@ use App\Entity\Parts\StorageLocation;
use App\Entity\Parts\Supplier;
use App\Entity\PriceInformations\Currency;
use App\Entity\ProjectSystem\Project;
use App\Entity\ProjectSystem\ProjectBOMEntry;
use App\Helpers\Assemblies\AssemblyPartAggregator;
use App\Helpers\FilenameSanatizer;
use App\Serializer\APIPlatform\SkippableItemNormalizer;
@ -399,7 +400,7 @@ class EntityExporter
'BomPartDescription' => '-',
'BomMountNames' => '-',
],
'processBomEntries' => fn($entity, $depth) => array_map(fn(AssemblyBOMEntry $bomEntry) => [
'processBomEntries' => fn($entity, $depth) => array_map(fn(ProjectBOMEntry $bomEntry) => [
'Id' => $entity->getId(),
'ParentId' => '',
'Type' => 'project_bom_entry',