QuickForm: return sent value only when sent
This commit is contained in:
parent
54ac96e4a9
commit
be98cf5133
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue