Navigation Menu

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

VisitorMap doesnt show anything when segment parameter is URL-encoded #9495

Merged
merged 1 commit into from Jan 12, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jan 11, 2016

fixes #8813

took me a long time to reproduce. Used segment &segment=pageTitle%3D%3DAbout%2520ExampleCode%3BcountryCode%3D%3Dde

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Jan 11, 2016
@tsteur tsteur added this to the 2.16.0 milestone Jan 11, 2016
mattab pushed a commit that referenced this pull request Jan 12, 2016
VisitorMap doesnt show anything when segment parameter is URL-encoded
@mattab mattab merged commit 741ca00 into master Jan 12, 2016
@mattab
Copy link
Member

mattab commented Jan 12, 2016

Good find!

@mattab mattab deleted the 8813 branch January 12, 2016 02:23
@sgiehl
Copy link
Member

sgiehl commented Jan 12, 2016

That change causes some UI tests to fail:
http://builds-artifacts.piwik.org/piwik/piwik/master/17512/

The visitor maps are broken. On my local machine I got a js error.

Uncaught TypeError: Cannot read property 'length' of undefined

I'll try to investigate...

@sgiehl
Copy link
Member

sgiehl commented Jan 12, 2016

Guess I found the problem. If no segment is set, the segment for country map config is set to false.

Before this change $params['segment'] was only set if there is a segment in the request. Now it is always set - and set to false if there is no segment in the request. Guess we need to check for a segment in the request before setting $params['segment']

@tsteur
Copy link
Member Author

tsteur commented Jan 12, 2016

Thx for that, you're right. Fixed it in e62c61c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants