@utrautmann opened this Issue on May 18th 2021

Summary: Changing the time period for the row evolution graph not works, when I'm comparing two periods for a single page. It leads to an exception.

Steps to reproduce:

  1. Select period "Month" and compare it to "Previous year" in the Date picker above
  2. Goto Behaviour-->Pages and select one page and open "Open row evolution"
  3. Click "Pick a row to compare" and select the same page with the period for the previous year. Now the row evolution opens again.
  4. If I try to select another "time period" for the graph (I try to select "Day" - see screenshot please) then nothing happens (in the background/ Log I find an exception : _Uncaught exception: /is/htdocs/wp11188790QHUN7F9B27/www/piwik/core/Period/Factory.php(131): Der Zeitraum '' wird nicht unterst├╝tzt. Versuchen Sie es stattdessen mit einem der folgenden: day, week, month, year, range

grafik

Comparing periods only works in the graph, if the selected period in the date picker above is the same like for the graph,

  • Matomo Version: 4.2.1, 4.3
@diosmosis commented on May 18th 2021 Member

Confirmed this is a bug. Changing the period will only change the current period type, not the period type of the period we are comparing to.

Additionally, changing the period back in the graph, will incorrectly set the date using the end date of the period. So if we have a day, 2021-05-04 compared with 2021-05-03, then change the period to week, 2021-05-04 will change to 2021-05-03,2021-05-09. If we change it back to a day, it becomes 2021-05-09, instead of 2021-05-04.

Powered by GitHub Issue Mirror