Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Form fix #2586 until it can be merged

  • Loading branch information...
commit 02f8f7ae1bdc06d41fd325934459baac52f9c254 1 parent 1af218e
@cgmartin authored
Showing with 9 additions and 11 deletions.
  1. +9 −11 library/Zend/Form/Form.php
View
20 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;
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.