Skip to content

Email reports sent via the cron core:archive task do not contain reports that depend on idsite #12560

@tsteur

Description

@tsteur

This is when executed on the cli. The problem is, there is no $_GET[idSite] set which means no Reports.addReports event listener can find reports as they use getRequestVar('idSite') to find eg all custom dimensions. This means it is not possible for plugins to add any reports depending on the idSite while rendering scheduled reports.

Easiest solution / work around would be probably to temporarily set an idsite while generating a report, and the ReportsCache would need to be based on idSite.

To test use eg ./console scheduled-tasks:run --force

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions