[BUGFIX] Always return unique field list
The method DatabaseRecordList::makeFieldList() creates a list of fields to select for a table. Since selector. This method however automatically adds some management fields, such as `crdate`. As those fields may also be included in TCA `columns`, e.g. for sys_redirects since #94143, they may be added multiple times, which leads to different errors. This is now fixed by applying array_unique to the final field list. Resolves: #94294 Releases: master Change-Id: I6e5cefaa4fb5d5a3dff9581105d19618143c1e79 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69424 Tested-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de>
Showing
- typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 15 additions, 15 deletions...sext/recordlist/Classes/RecordList/DatabaseRecordList.php
- typo3/sysext/recordlist/Tests/Unit/RecordList/DatabaseRecordListTest.php 99 additions, 0 deletions...cordlist/Tests/Unit/RecordList/DatabaseRecordListTest.php
Please register or sign in to comment