diff --git a/Controller/FormController.php b/Controller/FormController.php index ea40254..7be716c 100644 --- a/Controller/FormController.php +++ b/Controller/FormController.php @@ -132,7 +132,7 @@ public function addFormAnswerAction(Request $request) } } if ($widget->isAutoAnswer() === true && $email) { - if ($errors = $this->get('validator')->validateValue($widget->getNoReply(), new EmailConstraint())) { + if ($errors = $this->get('validator')->validate($widget->getNoReply(), new EmailConstraint())) { try { $urlizer = new Urlizer(); $body = $widget->getMessage();