This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Filters and validators are added twice when using fieldsets #5166
Comments
The same filter is added twice at line 816 and 772 after calling Zend\Form\Form::attachInputFilterDefaults() at line 819 |
I did a reverse git bisect and found out that this has been fixed in 5d25d75, which is ahead of release-2.2.4. here is a little test: public function testInputFilterNotAddedTwiceWhenUsingFieldsets()
{
$form = new \Zend\Form\Form();
$fieldset = new \ZendTest\Form\TestAsset\FieldsetWithInputFilter('fieldset');
$form->add($fieldset);
$filters = $form->getInputFilter()->get('fieldset')->get('foo')->getFilterChain();
$this->assertEquals(1, $filters->count());
} someone let me know if we should add it to affected users could try and use master branch until next maintenance release. |
Duplicate #5050 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Fieldset
Form
Controller action
Result
The text was updated successfully, but these errors were encountered: