name all form field

This commit is contained in:
Manuel Raynaud
2013-07-01 11:54:40 +02:00
parent 26be670f57
commit 762b5bc71c
5 changed files with 26 additions and 3 deletions

View File

@@ -90,8 +90,10 @@ class Form implements SmartyPluginInterface
$instance = $this->getInstance($params['name']);
$form = $instance->getForm();
if (true === $this->request->getSession()->get("form_error", false) && $this->request->getSession()->get
("form_name") == $instance->getName()) {
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);
}