Commit 0c241d29 authored by Sebastian Castro's avatar Sebastian Castro

Fixs import CSV with empty header column

parent 2cfa988d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment