mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
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:
parent
4e79bb120a
commit
2fcd48d4f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue