-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[2.0.x] Setting form element name to "value" produces BadMethodCallException during render #10398
Comments
I just like to add that other forbidden form element names are: |
Elements with name "value" are getting rendered without problems when passing a model into the form constructor, e.g.: Tested with phalcon 2.0.1 |
It checks if the form has a 'getter' to obtain the value of the element, as the form value has a method called getValue, it tries to use it to obtain the value |
+1 |
I'll try to sort out |
Fixed in the |
Setting form element name to "value" produces BadMethodCallException (Wrong number of parameters) during render.
Reproduction code:
PHP: 5.6.7-1 (debian)
Phalcon: 2.0.1
The text was updated successfully, but these errors were encountered: