Bug #94056
closedTask #86141: Remove superfluous database contraint in DataMapProcessor
Selecting wrong translation while synchronizeInlineRelations
0%
Description
In #80141 add allowLanguageSynchronization chain resolving the synchronization of languages was introduced, which have a small issue on InlineRelations, which leads to wrong content in translations inline relation.
The code in question is
TYPO3\CMS\Core\DataHandling\Localization\DataMapProcessor::resolveAncestorId()
if (
!empty($fieldNames['source'])
&& $element[$fieldNames['source']] !== $element[$fieldNames['parent']]
) {
return (int)$fieldNames['source'];
}
First, here we return the integer representation of the field name for the source field but we liked to return the ID which is inside the source field.
Second, we do not check if we return the integer 0, which may later select completely wrong records while synchronizeInlineRelations
Updated by Alexander Opitz over 3 years ago
- Related to Bug #80141: Add allowLanguageSynchronization chain resolving added
Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69013
Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69013
Updated by Alexander Opitz over 3 years ago
- Is duplicate of Bug #91430: Unrelated tt_content associated to a news after translating it added
Updated by Alexander Opitz over 3 years ago
- Status changed from Under Review to Resolved