Skip to content

Commit

Permalink
[BUGFIX] Only query default language PIDs in suggest wizard
Browse files Browse the repository at this point in the history
Due to the removal of "pages_language_overlay", the page IDs for
FormEngine's suggest wizard contains page IDs of all languages, however
it is defined that the "pid" field is only limited to the default language.

Adding a check for `sys_language_uid=0` ensures that the pid IN
query is much smaller than before.

Resolves: #85308
Releases: master
Change-Id: I21e2c706dc3d73986e027cb9e014e3f69980d3ba
Reviewed-on: https://review.typo3.org/57265
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
  • Loading branch information
bmack authored and IchHabRecht committed Jun 21, 2018
1 parent 87427a3 commit 46a5787
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -309,7 +309,8 @@ protected function getAllSubpagesOfPage($uid, $depth = 99)
$queryBuilder->expr()->in(
'pid',
$queryBuilder->createNamedParameter($pageIds, Connection::PARAM_INT_ARRAY)
)
),
$queryBuilder->expr()->eq('sys_language_uid', 0)
)
->execute()
->fetchAll();
Expand Down

0 comments on commit 46a5787

Please sign in to comment.