Problem/Motivation
\Drupal\location_migration\Plugin\migrate\field\Location::alterFieldInstanceMigration() does this:
$migration->mergeProcessOfProperty('settings', [
'plugin' => 'location_to_address_field_settings',
]);
But \Drupal\migrate\Plugin\Migration::mergeProcessOfProperty() uses NestedArray::mergeDeepArray(), which causes
Steps to reproduce
Install the location_migration module and suddenly any node_reference D7 source field without referenceable_types will cease to produce the error that I reported at #3198732: Migrating reference fields: target_bundles may never be empty array. IOW: this can obscure a bug elsewhere, and cause wrong data to get migrated.
Proposed resolution
Append this to the process pipeline for settings.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-3198937-2-3.txt | 749 bytes | huzooka |
| #3 | location_migration-settings_process-3198937-3.patch | 721 bytes | huzooka |
| #2 | 3198937-2.patch | 755 bytes | wim leers |
Comments
Comment #2
wim leersComment #3
huzookaI don't see what's the rationale behind this return statement...
Comment #5
huzookaComment #7
huzooka