PartController -> new Methode Variablennamen korrigieren

This commit is contained in:
Marcel Diegelmann 2025-04-11 12:07:55 +02:00
parent 02460801d9
commit b227bacdb0

View file

@ -234,7 +234,7 @@ final class PartController extends AbstractController
} elseif ($assembly instanceof Assembly) { } elseif ($assembly instanceof Assembly) {
//Initialize a new part for a build part from the given assembly //Initialize a new part for a build part from the given assembly
//Ensure that the assembly has not already a build part //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'); $this->addFlash('error', 'part.new_build_part.error.build_part_already_exists');
return $this->redirectToRoute('part_edit', ['id' => $project->getBuildPart()->getID()]); return $this->redirectToRoute('part_edit', ['id' => $project->getBuildPart()->getID()]);
} }