From 54c3ac9b469a3abb242d03172ac84e7801ca0776 Mon Sep 17 00:00:00 2001 From: David Valdez Date: Wed, 5 Sep 2018 21:18:29 -0500 Subject: [PATCH] Fix a bug in the MigrationLookup migration. The migrations with ID were being skipped by the MigrationLookup plugin. More info here: https://www.drupal.org/project/drupal/issues/2751825 --- .../migrations/agaric_comment.yml | 4 +- .../process/MigrationLookupWithZero.php | 44 +++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 web/modules/custom/agaric_migration/src/Plugin/migrate/process/MigrationLookupWithZero.php diff --git a/web/modules/custom/agaric_migration/migrations/agaric_comment.yml b/web/modules/custom/agaric_migration/migrations/agaric_comment.yml index 1c37f97..98f6fb6 100644 --- a/web/modules/custom/agaric_migration/migrations/agaric_comment.yml +++ b/web/modules/custom/agaric_migration/migrations/agaric_comment.yml @@ -9,7 +9,7 @@ source: process: pid: - - plugin: migration_lookup + plugin: migration_lookup_with_zero migration: agaric_comment source: pid no_stub: true @@ -37,7 +37,7 @@ process: subject: subject uid: - - plugin: migration_lookup + plugin: migration_lookup_with_zero migration: agaric_user source: uid no_stub: true diff --git a/web/modules/custom/agaric_migration/src/Plugin/migrate/process/MigrationLookupWithZero.php b/web/modules/custom/agaric_migration/src/Plugin/migrate/process/MigrationLookupWithZero.php new file mode 100644 index 0000000..875380a --- /dev/null +++ b/web/modules/custom/agaric_migration/src/Plugin/migrate/process/MigrationLookupWithZero.php @@ -0,0 +1,44 @@ +