[BUGFIX] Consider `translationSource` for fetching localized records 04/56904/2
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:43:18 +0000 (15:43 +0200)
commit704bf84395e4b2e0b55aa19ef33b398a66ff90e1
tree577a373572f5efa5e7210cbc88217a21a1265205
parente1213b2cc3bed49856aee841680b850da69167de
[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/56904
Tested-by: TYPO3com <no-reply@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