Fix parameter mapping on part creation dialog to fix add builds part

This fixes issue #348
This commit is contained in:
Jan Böhmer 2023-08-20 20:30:38 +02:00
parent e2270aec38
commit b62dc1241d

View file

@ -160,7 +160,7 @@ class PartController extends AbstractController
public function new(Request $request, EntityManagerInterface $em, TranslatorInterface $translator, public function new(Request $request, EntityManagerInterface $em, TranslatorInterface $translator,
AttachmentSubmitHandler $attachmentSubmitHandler, ProjectBuildPartHelper $projectBuildPartHelper, AttachmentSubmitHandler $attachmentSubmitHandler, ProjectBuildPartHelper $projectBuildPartHelper,
#[MapEntity(mapping: ['id' => 'id'])] ?Part $part = null, #[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) { if ($part instanceof Part) {