From: Xavier Perseguers Date: Fri, 28 Apr 2017 13:17:27 +0000 (+0200) Subject: [BUGFIX] Ensure tables already processed are skipped when resuming upgrade X-Git-Tag: v9.0.0~1107 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/b6d67a845cbeefe6f7f8c0873dd5073e4a637d6b [BUGFIX] Ensure tables already processed are skipped when resuming upgrade Change-Id: I991a9cbae2685abbcc606ce39d9f8395574491d1 Resolves: #81067 Releases: master, 8.7 Reviewed-on: https://review.typo3.org/52654 Tested-by: TYPO3com Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters Reviewed-by: Daniel Goerz Tested-by: Daniel Goerz Reviewed-by: Xavier Perseguers Tested-by: Xavier Perseguers --- diff --git a/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php b/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php index fcc0754a1763..8ad2ca9d0ac2 100644 --- a/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php +++ b/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php @@ -134,11 +134,11 @@ class DatabaseRowsUpdateWizard extends AbstractUpdate reset($listOfAllTables); $firstTable = current($listOfAllTables); $startPosition = $this->getStartPosition($firstTable); - foreach ($listOfAllTables as $table) { + foreach ($listOfAllTables as $key => $table) { if ($table === $startPosition['table']) { break; } else { - unset($listOfAllTables[$table]); + unset($listOfAllTables[$key]); } }