[BUGFIX] Skip nonRelationTables in lowlevel_refindex CLI script 85/38585/2
authorChristian Weiske <christian.weiske@netresearch.de>
Thu, 9 Apr 2015 08:23:36 +0000 (10:23 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 9 Apr 2015 12:31:33 +0000 (14:31 +0200)
Some tables do not have to be checked for broken references.

Change-Id: I487a4570b6fc8cd9b692350f9f526b0710ed61a7
Resolves: #66338
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/38585
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Database/ReferenceIndex.php

index 07814bd..095687b 100644 (file)
@@ -1116,6 +1116,9 @@ class ReferenceIndex {
                }
                // Traverse all tables:
                foreach ($GLOBALS['TCA'] as $tableName => $cfg) {
+                       if (isset(static::$nonRelationTables[$tableName])) {
+                               continue;
+                       }
                        // Traverse all records in tables, including deleted records:
                        $fieldNames = (BackendUtility::isTableWorkspaceEnabled($tableName) ? 'uid,t3ver_wsid' : 'uid');
                        $allRecs = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($fieldNames, $tableName, '1=1');