From 08776e5fc56da0018f9e90fddf3b1d332665d1ef Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 15 Oct 2013 21:52:35 +0200 Subject: [PATCH] clean code --- core/lib/Thelia/Form/CustomerLogin.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/lib/Thelia/Form/CustomerLogin.php b/core/lib/Thelia/Form/CustomerLogin.php index 5b7101f96..4948586d7 100755 --- a/core/lib/Thelia/Form/CustomerLogin.php +++ b/core/lib/Thelia/Form/CustomerLogin.php @@ -89,17 +89,12 @@ class CustomerLogin extends BaseForm } } - $context->addViolation('toto'); - - $root = $context->getRoot(); - $password = $root->get('password')->getPropertyPath(); - $parent = $password->getParent(); //$propertyPath = $context->getViolations()->add(new ConstraintViolation( 'failed password', 'toto', array(), - $root, + $context->getRoot(), 'children[password].data', 'propertyPath' ));