mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Merge branch 'ent-8062-Graficas-combinadas-en-CV-de-Meta-no-muestra-datos' into 'develop'
Ent 8062 graficas combinadas en cv de meta no muestra datos See merge request artica/pandorafms!4435
This commit is contained in:
commit
31bc3c2747
@ -1416,14 +1416,6 @@ function graphic_combined_module(
|
|||||||
$labels = [];
|
$labels = [];
|
||||||
$modules = [];
|
$modules = [];
|
||||||
foreach ($sources as $source) {
|
foreach ($sources as $source) {
|
||||||
$id_agent = agents_get_module_id(
|
|
||||||
$source['id_agent_module']
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!$id_agent) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
$server = metaconsole_get_connection_by_id($source['id_server']);
|
$server = metaconsole_get_connection_by_id($source['id_server']);
|
||||||
@ -1432,6 +1424,14 @@ function graphic_combined_module(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$id_agent = agents_get_module_id(
|
||||||
|
$source['id_agent_module']
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!$id_agent) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$modulepush = [
|
$modulepush = [
|
||||||
'server' => (isset($source['id_server']) === true) ? $source['id_server'] : 0,
|
'server' => (isset($source['id_server']) === true) ? $source['id_server'] : 0,
|
||||||
'module' => $source['id_agent_module'],
|
'module' => $source['id_agent_module'],
|
||||||
|
@ -612,6 +612,9 @@ final class ModuleGraph extends Item
|
|||||||
|
|
||||||
// Custom graph.
|
// Custom graph.
|
||||||
$fields = self::getListCustomGraph();
|
$fields = self::getListCustomGraph();
|
||||||
|
$selected_custom_graph = (\is_metaconsole() === true)
|
||||||
|
? $values['customGraphId'].'|'.$values['metaconsoleId']
|
||||||
|
: $values['customGraphId'];
|
||||||
$inputs[] = [
|
$inputs[] = [
|
||||||
'id' => 'MGcustomGraph',
|
'id' => 'MGcustomGraph',
|
||||||
'hidden' => $hiddenCustom,
|
'hidden' => $hiddenCustom,
|
||||||
@ -620,7 +623,7 @@ final class ModuleGraph extends Item
|
|||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'fields' => $fields,
|
'fields' => $fields,
|
||||||
'name' => 'customGraphId',
|
'name' => 'customGraphId',
|
||||||
'selected' => $values['customGraphId'],
|
'selected' => $selected_custom_graph,
|
||||||
'return' => true,
|
'return' => true,
|
||||||
'nothing' => __('None'),
|
'nothing' => __('None'),
|
||||||
'nothing_value' => 0,
|
'nothing_value' => 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user