Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Pixel Humain
GoGoCarto
Commits
0c241d29
Commit
0c241d29
authored
Mar 17, 2019
by
Sebastian Castro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixs import CSV with empty header column
parent
2cfa988d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php
...open/GeoDirectoryBundle/Services/ElementImportService.php
+1
-1
No files found.
CHANGELOG.md
View file @
0c241d29
...
...
@@ -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
...
...
src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php
View file @
0c241d29
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment