Homescreen may fail to load after deleting a report #10410
Labels
Area: Dashlets
Issues & PRs related to all things regarding the dashlets
Area: Reports
Issues & PRs related to all things regarding reports
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Major
Significant impact/severe disruption
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Type:Duplicate
Issues & PRs which are a duplicate of an existing issue/PR
Issue
The reports dashlet allows you to add reports to your homescreen.
If you delete a report which is used in a reports dashlet, the home screen fails to load and throws a 500 error.
Expected Behavior
The dashboard should continue to load, even after deleting a report which is used by the reports dashlet.
Actual Behavior
Uncaught Error: Attempt to assign property "user_parameters" on bool in /var/www/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44
Possible Fix
To follow
Steps to Reproduce
Context
When this happens, the main workarounds are to clear user preferences or restore the deleted report.
This fix prevents the unrecoverable error and allows the user to interact with the dashlet as normal.
Your Environment
The text was updated successfully, but these errors were encountered: