[BUGFIX] Override flex form field label with page TSConfig 39/47939/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 26 Apr 2016 12:42:04 +0000 (14:42 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 27 Apr 2016 17:40:42 +0000 (19:40 +0200)
commit838ab3c3cfc684d80032fbd9303f3e2db0eabc55
treefd88a6892f78229cd0be4623b5d30c44d6b9e9ef
parenta0942daae40c6b8c761fa3d23a7cfe0251606e2c
[BUGFIX] Override flex form field label with page TSConfig

Move the data handling to calculate a final field label
value from PaletteAndSingleFieldContainer to an own data
provider and register this provider for full database records
and for flex form processing.
This way flex form field label overrides via page TSConfig are fixed,
eg. this changes the "Order By" label of ext:news flex form:

TCEFORM.tt_content.pi_flexform.news_pi1.sDEF.settings\.orderBy.label = override

Language specific overrides in flex fields now work as well

...settings\.orderBy.label.fr = French override

Change-Id: I02474e9cca9db3e949c217f21f5704ec16641545
Resolves: #75606
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/47939
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/backend/Classes/Form/Container/PaletteAndSingleContainer.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaColumnsProcessFieldLabels.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaTypesShowitem.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php [new file with mode: 0644]
typo3/sysext/core/Configuration/DefaultConfiguration.php