[TASK] EXT:form - Optimize validation in InArrayValidator 84/47484/2
authorFlorian Mast <flo.mast@web.de>
Sat, 5 Mar 2016 15:21:59 +0000 (16:21 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 1 Apr 2016 10:34:28 +0000 (12:34 +0200)
commit7610794a277c1f66b21abe9e384c38757b3897d3
tree8f18f838872fe523d115517dd3b38a261d1f1ba2
parent8eca1bdec92f3767bc8c5ee6d566ab590ccf7434
[TASK] EXT:form - Optimize validation in InArrayValidator

The InArrayValidator is currently case sensitive. This
patchset adds a new TypoScript option "ignorecase".

Furthermore, unit tests are added to test the new option
"ignorecase". The patchset also solves an unreported
bug which occurs when using the InArrayValidator in the
form wizard.

Resolves: #69355
Releases: master, 7.6
Change-Id: I9f93b533947bbaef2259c2a53265af452a78924f
Reviewed-on: https://review.typo3.org/47105
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
(cherry picked from commit e8d3853c54fca4198d16f5b1de76a48171740655)
Reviewed-on: https://review.typo3.org/47484
typo3/sysext/form/Classes/Domain/Validator/AbstractValidator.php
typo3/sysext/form/Classes/Domain/Validator/InArrayValidator.php
typo3/sysext/form/Tests/Unit/Validator/AbstractValidatorTest.php
typo3/sysext/form/Tests/Unit/Validator/InArrayValidatorTest.php
typo3/sysext/form/Tests/Unit/Validator/LengthValidatorTest.php