Bug #42029
closedRootline relation overlay does not work for translated pages
100%
Description
Overlays for the relation fields of a page in the rootline, introduced with the rootline class refactoring, do not work for translated pages. The problem is that the overlay of data is done too early: RootlineUtility::enrichWithRelationFields() already kicks in long before the sys_language_uid is determined (which happens in index_ts.php:187, while determineId() - which needs the rootline - is called in line 145).
A possible solution would be to have the relation field enrichment done at a later point; that might however break other things.
Additionally, the language overlay done in RootlineUtility::enrichWithRelationFields() is also pointless, as the language is not known at that point.
One point where this becomes visible is when trying to access the media field of a translated page in the rootline with the "levelmedia" data key of stdWrap.