mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 05:55:16 +01:00
Added possibility to create nested structures of elements using Mass Import
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user