Unverified Commit 0813c0fb authored by Lucas Hedding's avatar Lucas Hedding Committed by Lucas Hedding
Browse files

Issue #3260646 by Erwin De Vylder, heddn, PCate, solideogloria: Rolling back a...

Issue #3260646 by Erwin De Vylder, heddn, PCate, solideogloria: Rolling back a skipped row (using --sync) results in: [warning] array_flip(): Can only flip string and integer values! EntityStorageBase.php:312
parent f565db8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ class MigrationImportSync implements EventSubscriberInterface {
      while ($id_map->valid()) {
        $map_source_id = $id_map->currentSource();
        $destination_ids = $id_map->currentDestination();
        if ($destination_ids !== NULL && !in_array($map_source_id, $source_id_values, TRUE)) {
        if ($destination_ids !== NULL && $destination_ids !== [] && !in_array($map_source_id, $source_id_values, TRUE)) {
          $this->dispatchRowDeleteEvent(MigrateEvents::PRE_ROW_DELETE, $migration, $destination_ids);
          if (class_exists(MigratePlusEvents::class)) {
            $this->dispatchRowDeleteEvent(MigratePlusEvents::MISSING_SOURCE_ITEM, $migration, $destination_ids);