[BUGFIX] TcaMigration should not skip on existing overrideChildTca 82/54582/2
authorMalte Koitka <malte@cytrus.de>
Wed, 3 May 2017 07:42:16 +0000 (09:42 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 8 Nov 2017 10:49:21 +0000 (11:49 +0100)
commit5b40db8e5fbd41ad2295e1a9e7ebd4951a404a3c
treee61028ee85c676a8176796cfa7563b50d1aa269c
parentd4e7f31aaf6ff20b7d83ea209ca0417dbb50d704
[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/54582
Tested-by: TYPO3com <no-reply@typo3.com>
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