mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 23:39:51 +01:00
Added a duplicate button in data structures (categories, footprints, etc.) Admin pages.
This commit is contained in:
@@ -90,13 +90,14 @@ class MeasurementUnitController extends BaseAdminController
|
||||
|
||||
/**
|
||||
* @Route("/new", name="measurement_unit_new")
|
||||
* @Route("/{id}/clone", name="measurement_unit_clone")
|
||||
* @Route("/")
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer): Response
|
||||
public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?MeasurementUnit $entity = null): Response
|
||||
{
|
||||
return $this->_new($request, $em, $importer);
|
||||
return $this->_new($request, $em, $importer, $entity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user