Make this error fail gracefully: Email Reports after a Custom Report gets deleted #22618
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
triaged
(The fix for this needs to be added in core, since Email reports are part of core. - Altamash)
Email Report breaks if you delete a Custom Report in it
Problem: If you have an Email Report that contains a deleted Custom Report, the email fails with an error in the Admin Dashboard (when you try to save the email settings).
Solution: It seems reasonable to instead make the Email Report fail silently / gracefully.
Steps to reproduce
Report CustomReports_getCustomReport_idCustomReport--3 is unknown or not available for report type 'email'.
(when I did it)Report CustomReports_getCustomReport_idCustomReport--64 is unknown or not available for report type 'email'.
(when the user did it)Who has produced this error:
Workaround:
Prognosis:
As there exists a workaround, where user can re-create the same report fresh (without the bug), it’s not a “blocking” issue. We’ll fix it eventually but not high priority.
The text was updated successfully, but these errors were encountered: