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

Overlay, add support for custom Date range #4069

Closed
anonymous-matomo-user opened this issue Aug 6, 2013 · 2 comments
Closed

Overlay, add support for custom Date range #4069

anonymous-matomo-user opened this issue Aug 6, 2013 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@anonymous-matomo-user
Copy link

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

Example

URL
index.php?module=Overlay&period=range&date=2013-07-02,2013-07-13&idSite=1

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-matomo-user
Copy link
Author

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

Code:

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
Copy link
Member

mattab commented Feb 13, 2020

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!

@mattab mattab closed this as completed Feb 13, 2020
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants