You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: