mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Respect CSV delimiter option during import.
This commit is contained in:
parent
1cbbc26e7a
commit
81bbedb949
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ class EntityImporter
|
|||
}
|
||||
|
||||
//The [] behind class_name denotes that we expect an array.
|
||||
$entities = $this->serializer->deserialize($content, $class_name . '[]', $options['format'], ['groups' => $groups]);
|
||||
$entities = $this->serializer->deserialize($content, $class_name . '[]', $options['format'],
|
||||
['groups' => $groups, 'csv_delimiter' => $options['csv_separator']]);
|
||||
|
||||
//Ensure we have an array of entitity elements.
|
||||
if(!is_array($entities)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue