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...
This commit is contained in:
Jan Böhmer 2023-02-19 21:56:10 +01:00
parent 4e79bb120a
commit 2fcd48d4f2

View file

@ -70,7 +70,7 @@ class LabelProfileController extends BaseAdminController
* @Route("/{id}/clone", name="label_profile_clone") * @Route("/{id}/clone", name="label_profile_clone")
* @Route("/") * @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); return $this->_new($request, $em, $importer, $entity);
} }