Bug #10486

Validation for multiple validators and nested objects broken

Added by Karsten Dambekalns almost 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-10-27
Priority:Must have Due date:
Assigned To:Christopher Hlubek % Done:

100%

Category:Validation
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 13
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

Currently the validation is seriously broken for nested objects and with multiple validators with different options.

The validators were "created" as singletons and options are overwritten each time the same validator type was used.

Additionally the check for "prototype" should use the constant and not a string to work.

Associated revisions

Revision f5b121d7
Added by Christopher Hlubek almost 5 years ago

[+BUGFIX] Fix validation for multiple validators and nested objects

Currently the validation is seriously broken for nested objects and with
multiple validators with different options.

The validators were "created" as singletons and options are overwritten
each time the same validator type was used.

Additionally the check for "prototype" should use the constant and not a
string to work.

Fixes: #10486
Change-Id: I9f5f1af9294e6532c78fe357fb087f2c5110deb7

History

#1 Updated by Karsten Dambekalns almost 5 years ago

  • Status changed from Accepted to Under Review

#2 Updated by Christopher Hlubek almost 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF