0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-01-10 11:37:53 +00:00

PHP 8.2 - Fix charts grouping

This commit is contained in:
Jack Anderson 2023-08-22 17:31:45 +01:00
parent ce92375318
commit 70594049b8

View file

@ -702,10 +702,12 @@ EOF;
$_data = array();
foreach ($data as $label => $values) {
$_data[$label] = [];
foreach ($values as $key => $value) {
$_data[$label][$tooltips[$label][$key]] += $value;
$_data[$label][$tooltips[$label][$key]] = ($_data[$label][$tooltips[$label][$key]] ?? 0) + 1;
}
}
$data = $_data;