When loading the dashboard containing an AOR Reports dashlet which is linked to a deleted report a fatal error is thrown.
PHP Fatal error: Uncaught Error: Attempt to assign property "user_parameters" on bool in xx/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44
Expected Behavior
The dashboard should load without issue.
Actual Behavior
The dashboard fails to load and the following error is thrown:
PHP Fatal error: Uncaught Error: Attempt to assign property "user_parameters" on bool in xx/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44
Possible Fix
Check report exists before trying to use it.
Steps to Reproduce
Create a report
Add report dashlet to dashboard and select the newly created report
Delete the report
Reload the dashboard
Context
High priority - Dashboard unusable
Your Environment
SuiteCRM Version used: 7.14.3
Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome Version 121.0.6167.140 (Official Build) (64-bit)
Environment name and version (e.g. MySQL, PHP 7): PHP 8.2
Operating System and version (e.g Ubuntu 16.04): Debian 11.8
Issue
When loading the dashboard containing an AOR Reports dashlet which is linked to a deleted report a fatal error is thrown.
PHP Fatal error: Uncaught Error: Attempt to assign property "user_parameters" on bool in xx/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44
Expected Behavior
The dashboard should load without issue.
Actual Behavior
The dashboard fails to load and the following error is thrown:
PHP Fatal error: Uncaught Error: Attempt to assign property "user_parameters" on bool in xx/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44
Possible Fix
Check report exists before trying to use it.
Steps to Reproduce
Context
High priority - Dashboard unusable
Your Environment