[BUGFIX] Add domain model validators only once 79/37579/2
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Sat, 14 Feb 2015 22:04:48 +0000 (23:04 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 11 Mar 2015 19:10:11 +0000 (20:10 +0100)
commitae317f2ae12c7e3743b5b5810c89c7223c9a902c
tree663c82c2f5e98648c4d53da07ee6a70f89fe0f86
parent47cbb9d39cf74fa2b218dc933778c8871c834d47
[BUGFIX] Add domain model validators only once

If a domain model validator is present and a controller
action accepts this domain model as argument, the validator
is added twice to the validation tree.

It is added in
ValidatorResolver::buildMethodArgumentsValidatorConjunctions()
and in ValidatorResolver::addCustomValidators() which is called
from ValidatorResolver::getBaseValidatorConjunction()

Both methods are called when building the validation tree in
ActionController::initializeActionMethodValidators()

Resolves: #52607
Releases: master, 6.2
Change-Id: Ic1674bacfb027840d9b8fcd1d66586ebb0e75ad6
Reviewed-on: http://review.typo3.org/37579
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/extbase/Classes/Validation/ValidatorResolver.php