Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Fixed bug. Double validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed Oct 5, 2018
1 parent 272f289 commit 8894a8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FormAbstract.php
Expand Up @@ -274,7 +274,10 @@ protected function findScenario($scenario = null)
*/
protected function resetInputFilter()
{
$this->setInputFilter($this->getInputFilter());
foreach ($this->getInputFilter()->getInputs() as $input) {
$this->getInputFilter()->remove($input->getName());
}
$this->attachInputs();
return $this;
}
}

0 comments on commit 8894a8e

Please sign in to comment.