Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
3664535e
Commit
3664535e
authored
Oct 27, 2014
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2351589
by ultimike, penyaskito: Fixed Exception when a source has no destId.
parent
6efeaf75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
+5
-4
No files found.
core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
View file @
3664535e
...
...
@@ -155,10 +155,11 @@ protected function runQuery() {
$map_key
=
'sourceid'
.
$count
;
$this
->
query
->
addField
(
$alias
,
$map_key
,
"migrate_map_
$map_key
"
);
}
$n
=
count
(
$this
->
migration
->
get
(
'destinationIds'
));
for
(
$count
=
1
;
$count
<=
$n
;
$count
++
)
{
$map_key
=
'destid'
.
$count
++
;
$this
->
query
->
addField
(
$alias
,
$map_key
,
"migrate_map_
$map_key
"
);
if
(
$n
=
count
(
$this
->
migration
->
get
(
'destinationIds'
)))
{
for
(
$count
=
1
;
$count
<=
$n
;
$count
++
)
{
$map_key
=
'destid'
.
$count
++
;
$this
->
query
->
addField
(
$alias
,
$map_key
,
"migrate_map_
$map_key
"
);
}
}
$this
->
query
->
addField
(
$alias
,
'source_row_status'
,
'migrate_map_source_row_status'
);
}
...
...
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