[BUGFIX] Change order of tablename and alias in restriction container
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / Query / Restriction / FrontendRestrictionContainer.php
index dda3df0..784f19f 100644 (file)
@@ -69,7 +69,7 @@ class FrontendRestrictionContainer extends AbstractRestrictionContainer
                     $disableRestriction = $tableName === 'pages' ? $typoScriptFrontendController->showHiddenPage : $typoScriptFrontendController->showHiddenRecords;
                 }
                 if (!$disableRestriction) {
-                    $constraints[] = $restriction->buildExpression([$tableName => $tableAlias], $expressionBuilder);
+                    $constraints[] = $restriction->buildExpression([$tableAlias => $tableName], $expressionBuilder);
                 }
             }
         }