QuickForm: return sent value only when sent

This commit is contained in:
Thomas Gelf 2015-10-13 17:28:26 +02:00
parent 54ac96e4a9
commit be98cf5133
1 changed files with 1 additions and 2 deletions

View File

@ -120,8 +120,7 @@ abstract class QuickForm extends Zend_Form
protected function getSentValue($name, $default = null)
{
$request = $this->getRequest();
if ($request->isPost()) {
if ($request->isPost() && $this->hasBeenSent()) {
return $request->getPost($name);
} else {
return $default;