[BUGFIX] Consider `translationSource` for fetching localized records 94/56894/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 9 May 2018 08:07:03 +0000 (10:07 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 10 May 2018 13:25:13 +0000 (15:25 +0200)
commit3c6cdaedd288a3514d48e99fe298870606769201
tree90abf4cd90e51d4cc4324cbac362ede7dab58ba6
parent3eb35aa2eb0360e9f23ab9fe5ee5514e7582415e
[BUGFIX] Consider `translationSource` for fetching localized records

Using `transOrigPointerField` to fetch localized records does not work
for records that were copied into a different language via DataHandler's
`copyLanguage` command.

`BackendUtility::getRecordLocalization()` now takes `translationSource`
into consideration to fetch the appropriate localization of a record.

Resolves: #84951
Releases: master, 8.7
Change-Id: I8fc9ea3c1fdaf3e54110196c6a27411e0c66b366
Reviewed-on: https://review.typo3.org/56894
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Functional/Controller/Page/LocalizationControllerTest.php