Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant transmission of array parameter to form #91

Closed
VladaHejda opened this issue Aug 6, 2015 · 1 comment
Closed

Redundant transmission of array parameter to form #91

VladaHejda opened this issue Aug 6, 2015 · 1 comment

Comments

@VladaHejda
Copy link
Contributor

If there is an array parameter of some presenter action (eg. function actionDefault(array $animals) and the form with equal named input (with array value, eg. $form->addMultiSelect('animals', ...)), then after the form si sent, values of that input are added to the form as hidden fields. In case of scalar input this is not happening and is should not occur either with array input.

When these hidden fields are present in the form, next send of the form has unexpected behavior.

See demonstration diff with screenshot in sandbox: nette/sandbox@master...VladaHejda:redundant-array-parameter

@dg
Copy link
Member

dg commented Aug 22, 2015

This is the limitation that can not be soved. Just the names of (GET) form elements and presenter parameters collide.

@dg dg closed this as completed Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants