From 26be670f5724494bd064605ee5771a22a6e1b813 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 1 Jul 2013 11:22:05 +0200 Subject: [PATCH] reset form session after binding errors --- core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php index 0870ba2c2..f7ee96d2a 100644 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php @@ -93,6 +93,7 @@ class Form implements SmartyPluginInterface if (true === $this->request->getSession()->get("form_error", false) && $this->request->getSession()->get ("form_name") == $instance->getName()) { $form->bind($this->request); + $this->request->getSession()->set("form_error", false); } $template->assign("form", $form->createView());