Project

General

Profile

Bug #94056

Updated by Alexander Opitz over 3 years ago

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() 

 <pre><code class="php"> 
 if ( 
     !empty($fieldNames['source']) 
     && $element[$fieldNames['source']] !== $element[$fieldNames['parent']] 
 ) { 
     return (int)$fieldNames['source']; 
 } 
 </code></pre> 

 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

Back