mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fix parameter mapping on part creation dialog to fix add builds part
This fixes issue #348
This commit is contained in:
parent
e2270aec38
commit
b62dc1241d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue