Merge branch 'ent-13721-17598-Resultado-de-Item-Grouped-Exception-no-devuelve-datos-cuando-seleccionamos-Only-Table' into 'develop'

Ent 13721 17598 resultado de item grouped exception no devuelve datos cuando seleccionamos only table

See merge request artica/pandorafms!7396
This commit is contained in:
Diego Muñoz-Reja 2024-05-20 13:58:27 +00:00
commit 9f9677ffd3
1 changed files with 11 additions and 0 deletions

View File

@ -4540,6 +4540,17 @@ function reporting_exception(
} else {
$return['chart']['hbar'] .= '</div>';
}
} else {
// Get only table data.
foreach ($items as $key => $item) {
$data = [];
$data['agent'] = $item['agent'];
$data['module'] = $item['module'];
$data['operation'] = __($item['operation']);
$data['value'] = $item['value'];
$data['formated_value'] = format_for_graph($item['value'], 2).' '.$item['unit'];
$return['data'][] = $data;
}
}
if ($content['show_resume'] && $i > 0) {