[BUGFIX] Only query default language PIDs in suggest wizard 65/57265/2
authorBenni Mack <benni@typo3.org>
Mon, 18 Jun 2018 17:25:01 +0000 (19:25 +0200)
committerNicole Cordes <typo3@cordes.co>
Thu, 21 Jun 2018 09:24:26 +0000 (11:24 +0200)
commit46a5787829d4beb9d8d2a4f5ec2ef54ba6e1d176
tree1bde24d042b2d131a5b6ba5714bd93def5bc05a2
parent87427a3b83f3c23836216cbee3998759b7cf6188
[BUGFIX] Only query default language PIDs in suggest wizard

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>
typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php