Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
drupal.org
feeds
Commits
4fb9d3b4
Commit
4fb9d3b4
authored
9 years ago
by
Pravin Ajaaz
Committed by
Chris Leppanen
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #2397151 by Pravin Ajaaz: importer UI for CSVs should quote column names that contain commas
parent
335d1759
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/FeedsCSVParser.inc
+6
-1
6 additions, 1 deletion
plugins/FeedsCSVParser.inc
with
6 additions
and
1 deletion
plugins/FeedsCSVParser.inc
+
6
−
1
View file @
4fb9d3b4
...
...
@@ -123,7 +123,12 @@ class FeedsCSVParser extends FeedsParser {
$mappings
=
feeds_importer
(
$this
->
id
)
->
processor
->
config
[
'mappings'
];
$sources
=
$uniques
=
array
();
foreach
(
$mappings
as
$mapping
)
{
$sources
[]
=
check_plain
(
$mapping
[
'source'
]);
if
(
strpos
(
$mapping
[
'source'
],
','
)
!==
FALSE
)
{
$sources
[]
=
'"'
.
check_plain
(
$mapping
[
'source'
])
.
'"'
;
}
else
{
$sources
[]
=
check_plain
(
$mapping
[
'source'
]);
}
if
(
!
empty
(
$mapping
[
'unique'
]))
{
$uniques
[]
=
check_plain
(
$mapping
[
'source'
]);
}
...
...
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