library/form: Fix return value of `getName()' not being filterd the first time it's called

`Form::getName()' auto-detects the form's name if it's not set and sets the form's name using `Zend_Form::setName()'.
`Zend_Form::setName()' then filters the form name stripping backslash '\' characters. The first call to `Form::getName()'
did not regard the filtering and thus returned the unfiltered name which led to `Form::wasSent()' returning `false'.

refs #5525
This commit is contained in:
Eric Lippmann 2014-09-01 14:40:45 +02:00
parent f3e74f0f24
commit 0822aff293
1 changed files with 1 additions and 1 deletions

View File

@ -585,8 +585,8 @@ class Form extends Zend_Form
if (! $name) {
$name = get_class($this);
$this->setName($name);
$name = parent::getName();
}
return $name;
}