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.
Uncaught Error: Attempt to assign property "user_parameters" on bool in /var/www/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44
Motivation and 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.
How To Test This
Create a test report
Add a reports dashlet to your dashboard
Assign the test report to your new reports dashlet
Confirm the home screen loads
Delete the report
Confirm the home screen fails to load, with the error shown above in the logs
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
[x] My code follows the code style of this project found here.
[ ] My change requires a change to the documentation.
Description
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.
Uncaught Error: Attempt to assign property "user_parameters" on bool in /var/www/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44
Motivation and 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.
How To Test This
Types of changes
Final checklist