Skip to content
Snippets Groups Projects
Commit b161b248 authored by André Buchmann's avatar André Buchmann Committed by Daniel Goerz
Browse files

[BUGFIX] Let site configuration recognize configured languages

Set inlineTopMostParentUid fallback to "null" as "0" is a valid
sys_language. "0" gives false positives in the check which languages
are already defined.

Resolves: #94248
Related: #94057
Releases: master
Change-Id: I7975c0fa91940c502faec25cdbe0b30426300ee5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69355


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent 16a78abc
Branches
Tags
No related merge requests found
......@@ -267,7 +267,7 @@ class SiteTcaInline extends AbstractDatabaseRecordProvider implements FormDataPr
'inlineParentFieldName' => $parentFieldName,
// values of the top most parent element set on first level and not overridden on following levels
'inlineTopMostParentUid' => $result['inlineTopMostParentUid'] ?: ($inlineTopMostParent['uid'] ?? 0),
'inlineTopMostParentUid' => $result['inlineTopMostParentUid'] ?: ($inlineTopMostParent['uid'] ?? null),
'inlineTopMostParentTableName' => $result['inlineTopMostParentTableName'] ?: ($inlineTopMostParent['table'] ?? ''),
'inlineTopMostParentFieldName' => $result['inlineTopMostParentFieldName'] ?: ($inlineTopMostParent['field'] ?? ''),
];
......@@ -306,7 +306,7 @@ class SiteTcaInline extends AbstractDatabaseRecordProvider implements FormDataPr
'inlineParentUid' => $result['databaseRow']['uid'],
'inlineParentTableName' => $result['tableName'],
'inlineParentFieldName' => $parentFieldName,
'inlineTopMostParentUid' => ($result['inlineTopMostParentUid'] ?? false) ?: ($inlineTopMostParent['uid'] ?? 0),
'inlineTopMostParentUid' => ($result['inlineTopMostParentUid'] ?? false) ?: ($inlineTopMostParent['uid'] ?? null),
'inlineTopMostParentTableName' => ($result['inlineTopMostParentTableName'] ?? false) ?: ($inlineTopMostParent['table'] ?? ''),
'inlineTopMostParentFieldName' => ($result['inlineTopMostParentFieldName'] ?? false) ?: ($inlineTopMostParent['field'] ?? ''),
// The sys_language uid 0
......
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