Url with a param equal to 0 is not available in controller #774

Closed
mycuisine opened this Issue Jan 2, 2013 · 2 comments

Comments

Projects
None yet
3 participants

Here is the connected route
Router::connect('/{:controller}/{:action}/{🆔[0-9]+}');

Url /post/edit/0 match but $this->request->id is not available in controller

Maybe the problem is in lithium\net\http\Route.php line 235, array_filter without any callback delete all entries equals to false

@mikegreiling mikegreiling added a commit to pixelcog/lithium that referenced this issue Mar 4, 2013

@mikegreiling mikegreiling fix for issue #774
ensure explicit request variables with value 0 are not treated as though they are undefined.
6465b22

@nateabele nateabele added a commit that referenced this issue Mar 4, 2013

@nateabele nateabele Merge pull request #844 from pixelcog/fix-router
Fix for issue #774
bb068eb
Contributor

mikegreiling commented Mar 4, 2013

you can close this one now I think

Owner

nateabele commented Mar 4, 2013

Totally. Thanks dude.

nateabele closed this Mar 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment