[BUGFIX] displayCond IN operator doesn't work like documented 37/43837/2
authorThomas Maroschik <tmaroschik@dfau.de>
Mon, 5 Oct 2015 20:49:12 +0000 (22:49 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 8 Oct 2015 15:57:52 +0000 (17:57 +0200)
commit037ca4187dc464820bc5d0aa4653de6faac68b77
tree63962081dc940aa1d3aca9128de3b5e72ef6954c
parentefa8c85dafc5667489f3f22e57fc258984f26770
[BUGFIX] displayCond IN operator doesn't work like documented

The FormEngine refactoring changed the representation
of field values, so that select boxes are now arrays.
The condition evaluation cannot handle those values as
prior to the refactoring and following the documentation.

This patch changes the behavior to follow strictly the
documentation. The = operator now compares only the first
element in case of an array. The IN operator compares two
potential lists for any match.

Fixes: #70421
Releases: master
Change-Id: I17e610215dede4c1c06c27d4d25ec1672bfccf83
Reviewed-on: http://review.typo3.org/43837
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataProvider/EvaluateDisplayConditions.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php