From 2fcd48d4f2e2df9cb7111d285fd75c965f76f19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 19 Feb 2023 21:56:10 +0100 Subject: [PATCH] Fixed error when cloning an label profile An attachment type with the same ID was retrieved from the DB, which was not cloneable for the form... --- src/Controller/AdminPages/LabelProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/AdminPages/LabelProfileController.php b/src/Controller/AdminPages/LabelProfileController.php index 96b70009..1b3579db 100644 --- a/src/Controller/AdminPages/LabelProfileController.php +++ b/src/Controller/AdminPages/LabelProfileController.php @@ -70,7 +70,7 @@ class LabelProfileController extends BaseAdminController * @Route("/{id}/clone", name="label_profile_clone") * @Route("/") */ - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?AttachmentType $entity = null): Response + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?LabelProfile $entity = null): Response { return $this->_new($request, $em, $importer, $entity); }