[BUGFIX] Ensure to use default UID for Extbase objects
With this change, Extbase consistently returns objects with a "uid" of the default language, and not the localized ID, depending on the query settings. This way, side effects related to the Persistence Storage are removed, as the persistence session is storing the UID + the localized UID as identifier. Resolves: #59992 Releases: main Change-Id: I42c0643ec2eb666c69446aef698fb180152bee08 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75099 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 5 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/core/Documentation/Changelog/12.0/Important-59992-ExtbaseConsistentUidValuesFromPersistenceSession.rst 26 additions, 0 deletions...9992-ExtbaseConsistentUidValuesFromPersistenceSession.rst
- typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php 3 additions, 1 deletiontypo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php 6 additions, 3 deletions...extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php 10 additions, 0 deletions...se/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
- typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php 14 additions, 36 deletions...e/Tests/Functional/Persistence/QueryLocalizedDataTest.php
- typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedSiteContentTest.php 10 additions, 10 deletions...ests/Functional/Persistence/TranslatedSiteContentTest.php
Please register or sign in to comment