@anonymous-piwik-user opened this Issue on August 6th 2013

When trying to view a Page Overlay for a custom date range (by manually editing the URL) the sidebar fails to load and returns an error. The page overlay works though.

> ajaxHelper generates wrong date property when period=range



Error message
The date '2013-07-02%2C2013-07-02%2C2013-07-13' is not a correct date range. It should have the following format: 'lastN', 'previousN', 'YYYY-MM-DD,YYYY-MM-DD'.

@anonymous-piwik-user commented on August 6th 2013

I tracked it down to ajaxHelper.js:393 where the ajax request url is being generated.


if (!params.date && !this.postParams.date) {
    params.date = piwik.currentDateString || broadcast.getValueFromUrl('date');
    if (params.period == 'range' && piwik.currentDateString) {
        params.date = piwik.startDateString + ',' + params.date;

In my case the variable values are

params.date = null
this.postParams.date = null
piwik.currentDateString = '2013-07-02,2013-07-13'
piwik.startDateString = '2013-07-02'
@mattab commented on February 13th 2020 Member

Thanks for contributing to this issue. As it has been a few months since the last activity and we believe this is likely not an issue anymore, we will now close this. If that's not the case, please do feel free to either reopen this issue or open a new one. We will gladly take a look again!

This Issue was closed on February 13th 2020
Powered by GitHub Issue Mirror