« Previous | Next » 

Revision 6b38d1f7

ID6b38d1f7a8d86886d99901c1535e502081e96285
Parent 3d492d3b
Child 2c060361

Added by Helmut Hummel over 7 years ago

[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: #49624
Releases: master, 2.2, 2.1
Change-Id: I1f8902d09f468177d580a7a3d949242cce78313e

  • added
  • modified
  • copied
  • renamed
  • deleted