Merge branch 'ent-11212-dos-bugs-con-item-de-donuts-chart-de-consolas-visuales' into 'develop'

Ent 11212 dos bugs con item de donuts chart de consolas visuales

See merge request artica/pandorafms!5900
This commit is contained in:
Matias Didier 2023-05-19 08:03:29 +00:00
commit 9bdeecf124
2 changed files with 6 additions and 6 deletions

View File

@ -2846,8 +2846,11 @@ function get_donut_module_data($id_module)
$values_to_return = [];
foreach ($values as $val) {
$data = explode(',', $val);
if (empty($val) === true) {
continue;
}
$data = explode(',', $val);
if ($data[0] === $val) {
continue;
}

View File

@ -160,9 +160,6 @@ final class DonutGraph extends Item
if (empty($graphData) === true) {
$data['html'] = graph_nodata_image(['width' => $width, 'height' => $height]);
} else {
array_pop($graphData['labels']);
array_pop($graphData['data']);
$options = [
'waterMark' => false,
'legend' => [
@ -226,7 +223,7 @@ final class DonutGraph extends Item
'module_input' => true,
'module_name' => 'moduleId',
'module_none' => false,
'get_only_string_modules' => false,
'get_only_string_modules' => true,
],
];
@ -241,7 +238,7 @@ final class DonutGraph extends Item
'sort' => false,
'agent_id' => $values['agentId'],
'metaconsole_id' => $values['metaconsoleId'],
'get_only_string_modules' => false,
'get_only_string_modules' => true,
],
];