Actions
Bug #97710
closedMissing languagefield in select causes failing overlay
Start date:
2022-05-31
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
We use the `TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor`
To be efficient we define our `selectFields` properly for only the fields we need.
Due to this a side effect occurred causing the overlay to fail.
In typo3/sysext/core/Classes/Domain/Repository/PageRepository.php:620
the following check is done.
`if ((int)$row[$tableControl['languageField']] === 0) {`
Now the issue is, if selectFields does not have the languageField listed, this check will always fail and throw away the.
Solution:
Not sure, but i would expect to check for the languageField and if there is non given it should be fetched, based on TCA etc.
Our test setup:
1 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
1 {
selectFields = uid, header, CType
table = tt_content
pidInList.field = pid
where.field = records
where.wrap = uid IN (|)
orderBy = sorting
as = inpage-nav-anchors
}
Actions