[BUGFIX] FormEngine: Fix broken invalid value handling for selects 40/44540/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 4 Nov 2015 19:22:08 +0000 (20:22 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 5 Nov 2015 14:47:08 +0000 (15:47 +0100)
commitff90a7c7b4010675e860a94cf1390367974b8092
tree2a67937fc4432835c6bc13e6ff39fad9c961b74c
parentb4276ebd449a0a1e3179a1667fcdbc87fa26d777
[BUGFIX] FormEngine: Fix broken invalid value handling for selects

The handling of invalid or non-matching items was handled inconsistently
in the different select elements. Determining the invalid items has been
moved into the data provider for select boxes so that the invalid values
can be correctly determined based on intermediate processing steps.

Resolves: #71257
Releases: master
Change-Id: I577089b29265a789612c7b3baaf60b66f4339b35
Reviewed-on: https://review.typo3.org/44540
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/Element/SelectCheckBoxElement.php
typo3/sysext/backend/Classes/Form/Element/SelectMultipleSideBySideElement.php
typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php
typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectTreeItems.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php