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

mycuisine opened this Issue Jan 2, 2013 · 2 comments


None yet
3 participants

Here is the connected route

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.

@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

mikegreiling commented Mar 4, 2013

you can close this one now I think


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