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

Fix percentage calculation on world map #14852

Merged
merged 2 commits into from Sep 21, 2019
Merged

Fix percentage calculation on world map #14852

merged 2 commits into from Sep 21, 2019

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Sep 4, 2019

fixes #14849

@sgiehl sgiehl 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 Sep 4, 2019
@sgiehl sgiehl added this to the 3.12.0 milestone Sep 4, 2019
if (Common::getRequestVar('period') == 'day' || $id != 'nb_uniq_visitors') {
$metrics[] = array($id, $val);
}
$metrics[] = array($id, $val);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That check should not be needed, as the API.getMetadata should only return metrics that are available for the given period.

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.

Wrong percentage on Visitors Location page
2 participants