diff --git a/library/Zend/Form/Form.php b/library/Zend/Form/Form.php index 7e4ecc54eb1..983105dfca6 100644 --- a/library/Zend/Form/Form.php +++ b/library/Zend/Form/Form.php @@ -587,17 +587,15 @@ public function setInputFilter(InputFilterInterface $inputFilter) */ public function getInputFilter() { - if (null === $this->filter) { - if ($this->object instanceof InputFilterAwareInterface) { - if (null == $this->baseFieldset) { - $this->filter = $this->object->getInputFilter(); - } else { - $name = $this->baseFieldset->getName(); - if (!$this->filter instanceof InputFilterInterface || !$this->filter->has($name)) { - $filter = new InputFilter(); - $filter->add($this->object->getInputFilter(), $name); - $this->filter = $filter; - } + if ($this->object instanceof InputFilterAwareInterface) { + if (null == $this->baseFieldset) { + $this->filter = $this->object->getInputFilter(); + } else { + $name = $this->baseFieldset->getName(); + if (!$this->filter instanceof InputFilterInterface || !$this->filter->has($name)) { + $filter = new InputFilter(); + $filter->add($this->object->getInputFilter(), $name); + $this->filter = $filter; } } }