Added a duplicate button in data structures (categories, footprints, etc.) Admin pages.

This commit is contained in:
Jan Böhmer 2020-04-06 13:14:47 +02:00
parent 315cc30a1a
commit e654c46e11
16 changed files with 92 additions and 65 deletions

View file

@ -90,13 +90,14 @@ class FootprintController extends BaseAdminController
/**
* @Route("/new", name="footprint_new")
* @Route("/{id}/clone", name="footprint_clone")
* @Route("/")
*
* @return Response
*/
public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer): Response
public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Footprint $entity = null): Response
{
return $this->_new($request, $em, $importer);
return $this->_new($request, $em, $importer, $entity);
}
/**