Commit fedfd85f authored by Georg Ringer's avatar Georg Ringer Committed by Benni Mack
Browse files

[BUGFIX] Allow quoting in TypoScript's select for leftjoin & rightjoin

By fixing a typo, the field quoting also works for `leftjoin` and `rightjoin`.

Resolves: #93449
Releases: master, 10.4, 9.5
Change-Id: I65c08d17f7f41a505fc4e23fbafd775469e9a13a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67695

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 1963ee59
......@@ -6604,7 +6604,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
);
if ($conf[$property] === '') {
unset($conf[$property]);
} elseif (in_array($property, ['languageField', 'selectFields', 'join', 'leftJoin', 'rightJoin', 'where'], true)) {
} elseif (in_array($property, ['languageField', 'selectFields', 'join', 'leftjoin', 'rightjoin', 'where'], true)) {
$conf[$property] = QueryHelper::quoteDatabaseIdentifiers($connection, $conf[$property]);
}
if (isset($conf[$property . '.'])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment