[BUGFIX] TcaMigration should not skip on existing overrideChildTca 93/52693/5
authorMalte Koitka <malte@cytrus.de>
Wed, 3 May 2017 07:42:16 +0000 (09:42 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 7 Nov 2017 17:07:45 +0000 (18:07 +0100)
commitb6c72882bf60a3c8243bd58836cd052f0dbc794f
tree0705e2cee73bdb5ea0c78a3e60e3a93897c0807f
parentf1475e8d1acfd2f1e3bacbf2329160645b9b3d63
[BUGFIX] TcaMigration should not skip on existing overrideChildTca

If an overideChildTca key is already added by a TYPO3 core
function like ExtensionManagementUtility::getFileFieldTCAConfig()
the TCA migration should not be skipped. Otherwise the config will
be incomplete and result in missing fields.

The migration is changed that old "foreign_types",
"foreign_selector_fieldTcaOverride" and "foreign_record_defaults"
are merged into new "overrideChildTca", but the new settings
are keps (take precedence) if given.

Resolves: #80719
Resolves: #81045
Releases: master, 8.7
Change-Id: Ic8a0338e0a9882b3b1e7abcd3123fbd7aa2b3505
Reviewed-on: https://review.typo3.org/52693
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Reviewed-by: Henning Liebe <h.liebe@neusta.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Migrations/TcaMigration.php
typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php