[BUGFIX] Make LocalizationRepository handle copied records 28/57628/15
authorMarkus Klein <markus.klein@typo3.org>
Tue, 28 Feb 2017 21:25:52 +0000 (22:25 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 2 Aug 2018 10:13:38 +0000 (12:13 +0200)
commitddec32356f5b778394af273ccb2c0e0cb4839747
tree3a8cb256774245ea82198c665c815f7ead24609b
parent652fcc67992cd01ebaadc1f5d990fc03bdc01d76
[BUGFIX] Make LocalizationRepository handle copied records

Improve LocalizationRepository queries to handle case
when records were copied from another page (thus t3_origuid)
is pointing to records from the other page.

Now LocalizationRepository uses l10n_source field instead of t3_origuid.
Tests for LocalizationRepository covering the case were added.

Resolves: #79443
Resolves: #78599
Releases: master, 7.6
Change-Id: Ibae4a276ea814f0ce3d453cffef1d22afeff1eb9
Reviewed-on: https://review.typo3.org/57628
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Johannes Kasberger <johannes.kasberger@reelworx.at>
Tested-by: Johannes Kasberger <johannes.kasberger@reelworx.at>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Łukasz Uznański <l.uznanski@macopedia.pl>
Tested-by: Łukasz Uznański <l.uznanski@macopedia.pl>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/Domain/Repository/Localization/LocalizationRepository.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/backend/Tests/Functional/Domain/Repository/Localization/Fixtures/DefaultPagesAndContent.csv [new file with mode: 0644]
typo3/sysext/backend/Tests/Functional/Domain/Repository/Localization/LocalizationRepositoryTest.php [new file with mode: 0644]