diff --git a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php index 9ea14f8..ba55764 100644 --- a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php +++ b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php @@ -239,11 +239,9 @@ public function buildForm(array $form, FormStateInterface $form_state) { * {@inheritdoc} */ public function validateForm(array &$form, FormStateInterface $form_state) { - // HELP NEEDED: user_validate_name is broken with the new API, skip it until - // we can work out what is going on. -// if ($error = user_validate_name($form_state->getValue(array('account', 'name')))) { -// $form_state->setErrorByName('account][name', $error); -// } + if ($error = user_validate_name($form_state->getValue(array('account', 'name')))) { + $form_state->setErrorByName('account][name', $error); + } } /** diff --git a/core/lib/Drupal/Core/TypedData/Validation/Metadata.php b/core/lib/Drupal/Core/TypedData/Validation/Metadata.php index acb0724..59bda1d 100755 --- a/core/lib/Drupal/Core/TypedData/Validation/Metadata.php +++ b/core/lib/Drupal/Core/TypedData/Validation/Metadata.php @@ -129,6 +129,6 @@ public function getCascadingStrategy() { * {@inheritdoc} */ public function getTraversalStrategy() { - return TraversalStrategy::IMPLICIT; + return TraversalStrategy::NONE; } } diff --git a/core/vendor/symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php b/core/vendor/symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php index c1cfbb5..2da1887 100644 --- a/core/vendor/symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php +++ b/core/vendor/symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php @@ -419,8 +419,7 @@ private function validateEachObjectIn($collection, $propertyPath, array $groups, // Scalar and null values in the collection are ignored // (BC with Symfony < 2.5) - // HELP NEEDED: String can't be validated, I think we're recursing one level too far - if (is_object($value) && ($value instanceof \Drupal\Core\TypedData\ComplexDataInterface || $value instanceof \Drupal\Core\TypedData\ListInterface)) { + if (is_object($value)) { $this->validateObject( $value, $propertyPath.'['.$key.']',