Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
migrate_plus
Commits
0a1f9752
Commit
0a1f9752
authored
Feb 10, 2021
by
arthur_lorenz
Committed by
Lucas Hedding
Apr 16, 2021
Browse files
#250
'0' key should not be skipped.
parent
c8bf9595
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Plugin/migrate_plus/data_parser/Json.php
View file @
0a1f9752
...
...
@@ -54,7 +54,7 @@ class Json extends DataParserPluginBase implements ContainerFactoryPluginInterfa
// Otherwise, we're using xpath-like selectors.
$selectors
=
explode
(
'/'
,
trim
(
$this
->
itemSelector
,
'/'
));
foreach
(
$selectors
as
$selector
)
{
if
(
!
empty
(
$selector
))
{
if
(
!
empty
(
$selector
)
||
$selector
===
'0'
)
{
$source_data
=
$source_data
[
$selector
];
}
}
...
...
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