[BUGFIX] Remove non existing fields in FormEngine ListOfFieldsContainer 30/51630/4
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 10 Feb 2017 17:52:36 +0000 (18:52 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Sun, 12 Feb 2017 08:17:38 +0000 (09:17 +0100)
commit7285a2f6523668af8b5d9cb95b208634f1533533
tree1a436be00b0a76c9f6308dad9b2c47d88305d469
parentc500f4f6952d35cda6bd785dafbd1669ee883eca
[BUGFIX] Remove non existing fields in FormEngine ListOfFieldsContainer

ListOfFieldsContainer of FormEngine render construct is used
to reduce the field list of a full record down to a given list of
fields that should be rendered, only.
It is triggered for instance from the list module if only a single
field of multiple different records should be edited at once.
Until now, the container did not fully validate if a given field
actually exists within the showitem field or palette and basically
delegated the handling down to a different container which in the
end skipped that field if it was not configured in TCA for given
record type.
The patch fixes this by improving the lookup. Field rendering is
no longer delegated down to other containers if the field in
question does not exist within the 'types' section and is not
within a referenced 'palette' of given record type.

Change-Id: I750ebf7c3d87ecb381f7bbe21b63528765841277
Resolves: #79750
Releases: master
Reviewed-on: https://review.typo3.org/51630
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/backend/Classes/Form/Container/ListOfFieldsContainer.php
typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php [new file with mode: 0644]