mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added possibility to create nested structures of elements using Mass Import
This commit is contained in:
parent
22950f2476
commit
07f95bc6ea
7 changed files with 126 additions and 12 deletions
|
@ -364,7 +364,7 @@ abstract class BaseAdminController extends AbstractController
|
|||
|
||||
//Create entries based on input
|
||||
$errors = [];
|
||||
$results = $importer->massCreation($data['lines'], $this->entity_class, $data['parent'], $errors);
|
||||
$results = $importer->massCreation($data['lines'], $this->entity_class, $data['parent'] ?? null, $errors);
|
||||
|
||||
//Show errors to user:
|
||||
foreach ($errors as $error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue