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

Impossible to call Form::add with null values for position and type #2321

Closed
deep9 opened this issue Apr 10, 2014 · 0 comments
Closed

Impossible to call Form::add with null values for position and type #2321

deep9 opened this issue Apr 10, 2014 · 0 comments

Comments

@deep9
Copy link

deep9 commented Apr 10, 2014

I was trying to extend form::add function for easier label assignment, but it is impossible to call Form::add($element, null, null), it produces "Array position does not exist" error.

I think the problem may be in here https://github.com/phalcon/cphalcon/blob/1.3.0/ext/forms/form.c#L921, maybe pos being an object of null? Maybe the solution would be (!pos || Z_TYPE_P(pos) == IS_NULL) or something?

Using phalcon 1.3.0, but the same code is on master as well, so I think master is also affected.


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

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