[BUGFIX] Respect TCA field foreign_default_sortby by extbase
Inside the extbase context child relations are always ordered by the foreign_sortby field if set or by order of creation. Even if the field foreign_default_sortby is set, it only impacts the order of the backend view. This patch brings the order of extbase results inline with the order of the backend view. Resolves: #64197 Releases: main, 11.5 Change-Id: I582576b5ac3741e2bbc4107664140fd9a2f63a16 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77971 Tested-by:Benni Mack <benni@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
core-ci <typo3@b13.com>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 10 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/ColumnMap.php 20 additions, 0 deletions.../extbase/Classes/Persistence/Generic/Mapper/ColumnMap.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php 2 additions, 1 deletion...ase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php 41 additions, 2 deletions...extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_post.php 1 addition, 0 deletions...le/Configuration/TCA/tx_blogexample_domain_model_post.php
- typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/comments.csv 7 additions, 0 deletions...xtbase/Tests/Functional/Persistence/Fixtures/comments.csv
- typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php 27 additions, 0 deletions.../Functional/Persistence/Generic/Mapper/DataMapperTest.php
- typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php 145 additions, 433 deletions.../Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php
Please register or sign in to comment