mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed creation objects when select 'Any' module of agents. Tqiuet: #3062
(cherry picked from commit 994c99c1a84ada61dcd759cd2a41a81f0d483edb)
This commit is contained in:
parent
d1d30d721b
commit
786d36ef79
@ -496,30 +496,9 @@ switch ($activeTab) {
|
||||
|
||||
//Any module
|
||||
if ($name_modules[0] == '0') {
|
||||
$id_modules = array();
|
||||
|
||||
if ($id_server != 0) {
|
||||
if (metaconsole_connect(null, $id_server) != NOERR) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($id_agents as $id_agent) {
|
||||
$id_modulo = agents_get_modules($id_agent, array('id_agente_modulo'));
|
||||
if (empty($id_modulo)) $id_modulo = array();
|
||||
|
||||
foreach ($id_modulo as $id) {
|
||||
$id_modules[] = $id['id_agente_modulo'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($id_server != 0) {
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
|
||||
$message .= visual_map_process_wizard_add_modules(
|
||||
$id_modules,
|
||||
|
||||
$message .= visual_map_process_wizard_add_agents(
|
||||
$id_agents,
|
||||
$image,
|
||||
$idVisualConsole,
|
||||
$range,
|
||||
@ -531,7 +510,7 @@ switch ($activeTab) {
|
||||
$max_value,
|
||||
$type_percentile,
|
||||
$value_show,
|
||||
$label_type,
|
||||
'agent',
|
||||
$type,
|
||||
$enable_link,
|
||||
$id_server,
|
||||
|
Loading…
x
Reference in New Issue
Block a user