Administrators can copy dashboards from any user to any number of users, security groups, or roles. Save time logging in as individual users to set up their dashboards.
#5283 - Append Dashboards - Deploy to Security Group(s)
Hi Support,
We have found a bug when appending a dashboard and deploying it to a Security Group:
PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /var/www/html/modules/jckl_DashboardTemplates/jckl_DashboardTemplates.php:526\nStack trace:\n#0 /var/www/html/modules/jckl_DashboardTemplates/jckl_DashboardTemplates.php(526): in_array(NULL, '1')\n#1 /var/www/html/modules/jckl_DashboardTemplates/jckl_DashboardTemplates.php(461): jckl_DashboardTemplates->addAlertForUser('1')\n#2 /var/www/html/modules/jckl_DashboardTemplates/jckl_DashboardTemplates.php(400): jckl_DashboardTemplates->appendToUsers(Array, Object(jacka_DashboardAppend))\n#3 /var/www/html/modules/jacka_DashboardAppend/Deploy.php(42): jckl_DashboardTemplates->appendDashboard(Array)\n#4 /var/www/html/include/MVC/View/SugarView.php(824): include_once('/var/www/buttmi...')\n#5 /var/www/html/include/MVC/View/views/view.classic.php(72): SugarView->includeClassicFile('modules/jacka_D...')\n#6 /var/www/html/include/MVC/View/SugarView.php(210): ViewClassic->display()\n#7 /var/www/html/include/MVC/Controller/SugarController.php(432): SugarView->process()\n#8 /var/www/html/include/MVC/Controller/SugarController.php(363): SugarController->processView()\n#9 /var/www/html/include/MVC/SugarApplication.php(101): SugarController->execute()\n#10 /var/www/html/index.php(54): SugarApplication->execute()\n#11 {main}\n thrown in /var/www/html/modules/jckl_DashboardTemplates/jckl_DashboardTemplates.php on line 526, referer: https://html/index.php?module=jacka_DashboardAppend&action=Deploy&template=93a94b8f-4926-3dec-a618-65f9b80ea1ce&step=2&deploy_type=group
The CRM system is running SuiteCRM 7.14.2 & PHP 8.2
Kind regards,
7 months ago
Thank you. I am working on a fix and should have it available today or tomorrow.
7 months ago
Hello, I uploaded a version 2.4 that should resolve this issue. I also added checks if count() which is a common cause of errors in 8.2
7 months ago
Many thanks.