Skip to content

Instantly share code, notes, and snippets.

@welly
Created November 7, 2016 00:39
Show Gist options
  • Save welly/aa676bdbcca803ed2f40f9d37c3c4335 to your computer and use it in GitHub Desktop.
Save welly/aa676bdbcca803ed2f40f9d37c3c4335 to your computer and use it in GitHub Desktop.
diff --git a/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php
index 0488d96..77e0c6b 100644
--- a/core/modules/migrate/src/MigrateExecutable.php
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -317,7 +317,7 @@ public function rollback() {
// Loop through each row in the map, and try to roll it back.
foreach ($id_map as $map_row) {
- $destination_key = $id_map->currentDestination();
+ $destination_key = array_filter($id_map->currentDestination());
if ($destination_key) {
$map_row = $id_map->getRowByDestination($destination_key);
if ($map_row['rollback_action'] == MigrateIdMapInterface::ROLLBACK_DELETE) {
@larowlan
Copy link

fyi we've moved this into a file in the repo. so you can remove it without it causing issues

hope all is well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment