From b62dc1241d815f648a6f8fffa50711719983fdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 20 Aug 2023 20:30:38 +0200 Subject: [PATCH] Fix parameter mapping on part creation dialog to fix add builds part This fixes issue #348 --- src/Controller/PartController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/PartController.php b/src/Controller/PartController.php index 3adfda5c..0537fd6a 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -160,7 +160,7 @@ class PartController extends AbstractController public function new(Request $request, EntityManagerInterface $em, TranslatorInterface $translator, AttachmentSubmitHandler $attachmentSubmitHandler, ProjectBuildPartHelper $projectBuildPartHelper, #[MapEntity(mapping: ['id' => 'id'])] ?Part $part = null, - #[MapEntity(mapping: ['id' => 'project_id'])] ?Project $project = null): Response + #[MapEntity(mapping: ['project_id' => 'id'])] ?Project $project = null): Response { if ($part instanceof Part) {