mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-10 04:59:30 +00:00
Fixed error with mass creation, when elements on different level had the same name
Fixes issue #1104
This commit is contained in:
parent
b457298152
commit
9565a9d548
2 changed files with 2 additions and 2 deletions
|
|
@ -380,7 +380,7 @@ abstract class BaseAdminController extends AbstractController
|
||||||
}
|
}
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
if (count($created_count) > 0) {
|
if (count($results) > 0) {
|
||||||
$this->addFlash('success', t('entity.mass_creation_flash', ['%COUNT%' => $created_count]));
|
$this->addFlash('success', t('entity.mass_creation_flash', ['%COUNT%' => $created_count]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,7 @@ class EntityImporter
|
||||||
}
|
}
|
||||||
|
|
||||||
//Only return objects once
|
//Only return objects once
|
||||||
return array_values(array_unique($valid_entities));
|
return array_values(array_unique($valid_entities, SORT_REGULAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue