Created
November 7, 2016 00:39
-
-
Save welly/aa676bdbcca803ed2f40f9d37c3c4335 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fyi we've moved this into a file in the repo. so you can remove it without it causing issues
hope all is well