Skip to content
Snippets Groups Projects
Commit 6d35ce66 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Daniel Goerz
Browse files

[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: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent 0b00f004
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment