mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 05:55:16 +01:00
Fixed exception about non-persisted entities, when using the cached StructuralEntityType.
This commit is contained in:
@@ -72,6 +72,9 @@ abstract class BaseAdminController extends AbstractController
|
||||
$em->flush();
|
||||
}
|
||||
|
||||
//Rebuild form, so it is based on the updated data. Important for the parent field!
|
||||
$form = $this->createForm($this->form_class, $entity);
|
||||
|
||||
return $this->render($this->twig_template, [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView()
|
||||
|
||||
Reference in New Issue
Block a user