Skip to content
Snippets Groups Projects
Commit 0c241d29 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Fixs import CSV with empty header column

parent 2cfa988d
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ v2.3
* FEATURE: Webhooks availables !
* BUG: Fix form builder labels and unique name edit
* FEATURE: Form Image Field available (with url, not uploading)
* BUG: Import CSV with empty header column
v2.2
......
......@@ -392,7 +392,7 @@ class ElementImportService
$customFields = array_diff($customFields, ['lat', 'long', 'lon', 'lng', 'title', 'nom', 'categories', 'address']);
$customData = [];
foreach ($customFields as $customField) {
$customData[$customField] = $raw_data[$customField];
if ($customField && is_string($customField)) $customData[$customField] = $raw_data[$customField];
}
$element->setCustomData($customData, $this->privateDataProps);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment