Actions
Bug #93449
closedContentObjectRenderer: Dbal compatible field quoting not working for 'leftjoin' and 'rightjoin' - only for 'join'
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2021-02-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
The Dbal compatible field quoting in ContentObjectRenderer
is not working for leftjoin
and rightjoin
.
There is a uppercase typo in typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
:
must be leftjoin
/rightjoin
, not leftJoin
/rightJoin
.
public function getQuery($table, $conf, $returnQueryArray = false)
{
[…]
$properties = [
[…]
'join',
'leftjoin',
'rightjoin',
[…]
];
foreach ($properties as $property) {
[…]
} elseif (in_array($property, ['languageField', 'selectFields', 'join', 'leftJoin', 'rightJoin', 'where'], true)) {
$conf[$property] = QueryHelper::quoteDatabaseIdentifiers($connection, $conf[$property]);
}
affected TYPO3 versions¶
- master
- 10.4
- 9.5
- 8.7
Documentation¶
- Dbal Quoting
- select object: property: join/leftjoin/rightjoin
Actions