mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 14:06:45 +01:00
Allow to directly add build as stock to the associated builds part.
This commit is contained in:
@@ -92,7 +92,9 @@ class ProjectController extends AbstractController
|
||||
$form->handleRequest($request);
|
||||
if ($form->isSubmitted()) {
|
||||
if ($form->isValid()) {
|
||||
$buildHelper->doWithdrawForProjectBuildRequest($projectBuildRequest);
|
||||
//We have to do a flush already here, so that the newly created partLot gets an ID and can be logged to DB later.
|
||||
$entityManager->flush();
|
||||
$buildHelper->doBuild($projectBuildRequest);
|
||||
$entityManager->flush();
|
||||
$this->addFlash('success', 'project.build.flash.success');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user