[BUGFIX] Don’t show translated pages in SuggestWizard 50/55550/4
authorMathias Schreiber <mathias.schreiber@typo3.org>
Sun, 4 Feb 2018 13:56:47 +0000 (14:56 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 4 Feb 2018 17:29:21 +0000 (18:29 +0100)
The SuggestWizard no longer returns translated pages.
For the sake of database relations, relating directly to a translated
page makes no sense and will most likely result in unintended
behavior.

Resolves: #83771
Releases: master
Change-Id: Ibfa8dfa3082245726e0a519e77f26849507e421b
Reviewed-on: https://review.typo3.org/55550
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php

index dd6fc14..76b8723 100644 (file)
@@ -120,7 +120,8 @@ class SuggestWizardDefaultReceiver
         }
         if ($this->table === 'pages') {
             $this->queryBuilder->andWhere(
-                QueryHelper::stripLogicalOperatorPrefix($GLOBALS['BE_USER']->getPagePermsClause(Permission::PAGE_SHOW))
+                QueryHelper::stripLogicalOperatorPrefix($GLOBALS['BE_USER']->getPagePermsClause(Permission::PAGE_SHOW)),
+                $this->queryBuilder->expr()->eq('sys_language_uid', 0)
             );
         }
         if (isset($config['addWhere'])) {