From b227bacdb08c25556d69b5873c5e45c6e101616c Mon Sep 17 00:00:00 2001 From: Marcel Diegelmann Date: Fri, 11 Apr 2025 12:07:55 +0200 Subject: [PATCH] PartController -> new Methode Variablennamen korrigieren --- 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 ae0055f7..a37673a3 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -234,7 +234,7 @@ final class PartController extends AbstractController } elseif ($assembly instanceof Assembly) { //Initialize a new part for a build part from the given assembly //Ensure that the assembly has not already a build part - if ($project->getBuildPart() instanceof Part) { + if ($assembly->getBuildPart() instanceof Part) { $this->addFlash('error', 'part.new_build_part.error.build_part_already_exists'); return $this->redirectToRoute('part_edit', ['id' => $project->getBuildPart()->getID()]); }