Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix for unmatched routes in navigation #4530

Closed
wants to merge 2 commits into from

Conversation

cdekok
Copy link
Contributor

@cdekok cdekok commented May 23, 2013

Zf 2.2 changed the navigation behaviour for the segment route from 2.1.5 it needs the route match to keep the old behavior only on error (404) pages the route is not matched and will throw and error on the getParams method as it is not an object.

@weierophinney
Copy link
Member

Please add a unit test, so we don't have another regression in the future.

@cdekok
Copy link
Contributor Author

cdekok commented May 23, 2013

@weierophinney I have added a test, but am not sure if the route match object is required? Maybe it goes somewhere else wrong if an error event is triggered? The extra check in the if statement seems to work for me, but not sure what else can go wrong here :)

@weierophinney
Copy link
Member

@mech7 test looks good! The big question: does it fail prior to the fix? And it does. :) Merging!

weierophinney added a commit that referenced this pull request May 23, 2013
Fix for unmatched routes in navigation
weierophinney added a commit that referenced this pull request May 23, 2013
@ghost ghost assigned weierophinney May 23, 2013
weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015
…-nav-fix

Fix for unmatched routes in navigation
weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants