Added possibility to create nested structures of elements using Mass Import

This commit is contained in:
Jan Böhmer 2023-01-28 23:24:45 +01:00
parent 22950f2476
commit 07f95bc6ea
7 changed files with 126 additions and 12 deletions

View file

@ -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) {