@quba opened this Issue on June 25th 2015 Contributor

When I switch to cities view, I can see the following error in the console:

Uncaught TypeError: Cannot read property 'toFixed' of undefined

I can reproduce it using demo: http://demo.piwik.org/index.php?module=CoreHome&action=index&idSite=7&period=day&date=yesterday#/module=UserCountry&action=index&idSite=7&period=day&date=yesterday

@igorkba commented on June 25th 2015

browser type and version, name of javascript which throws this exception? I some time see on my console type error from my chrome plugin. :) I don't have permission on the ID site, but when I change ID site to public, it works fine(google chrome 43.0.2357.130):
http://demo.piwik.org/index.php?module=CoreHome&action=index&idSite=7&period=day&date=yesterday#/module=UserCountry&action=index&idSite=7&period=day&date=yesterday

@quba commented on June 25th 2015 Contributor

Have you changed from Regions to Cities? I was able to reproduce using latest Chrome and Firefox on Mac OSX.

@igorkba commented on June 25th 2015

In private mode:
see attachment
regionstocity

@igorkba commented on June 25th 2015

I see already, you're right.

@mattab commented on June 25th 2015 Owner

Thanks for the report. Adding to 2.14.0 as this is a regression.

Suggestions:

  • let's add a UI test for the Cities map (eg. Germany)
  • let's add a UI test for the Region map (eg. USA)
  • then we fix the issue and we know it will never break again :+1:
This Issue was closed on June 26th 2015
Powered by GitHub Issue Mirror