Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoGoCarto
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pixel Humain
GoGoCarto
Commits
0c241d29
Commit
0c241d29
authored
6 years ago
by
Sebastian Castro
Browse files
Options
Downloads
Patches
Plain Diff
Fixs import CSV with empty header column
parent
2cfa988d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php
+1
-1
1 addition, 1 deletion
...open/GeoDirectoryBundle/Services/ElementImportService.php
with
2 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
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
...
...
This diff is collapsed.
Click to expand it.
src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php
+
1
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment