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:
parent
ce92375318
commit
70594049b8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue