[BUGFIX] Property Validation with Namespaces
authorIngo Pfennigstorf <i.pfennigstorf@gmail.com>
Sat, 8 Sep 2012 20:32:46 +0000 (22:32 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 26 Sep 2012 20:50:31 +0000 (22:50 +0200)
This fixes the validation of properties in namespaced TYPO3.

Change-Id: I6a69f9e2890c71c91b572a991acbfb1a6760dcf5
Fixes: #40748
Releases: 6.0
Reviewed-on: http://review.typo3.org/14463
Reviewed-by: Stefan Neufeind
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Classes/Validation/ValidatorResolver.php

index 4b0a9df..d0e6ff3 100644 (file)
@@ -208,7 +208,7 @@ class ValidatorResolver implements \TYPO3\CMS\Core\SingletonInterface {
        protected function buildBaseValidatorConjunction($dataType) {
                $validatorConjunction = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Validation\\Validator\\ConjunctionValidator');
                // Model based validator
-               if (strpos($dataType, '_') !== FALSE && class_exists($dataType)) {
+               if (class_exists($dataType)) {
                        $validatorCount = 0;
                        $objectValidator = $this->createValidator('GenericObject');
                        foreach ($this->reflectionService->getClassPropertyNames($dataType) as $classPropertyName) {
@@ -358,4 +358,4 @@ class ValidatorResolver implements \TYPO3\CMS\Core\SingletonInterface {
 }
 
 
-?>
\ No newline at end of file
+?>