mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-11444-bug-al-crear-elementos-en-consola-visual-de-metaconsola-con-wizard' into 'develop'
Ent 11444 bug al crear elementos en consola visual de metaconsola con wizard See merge request artica/pandorafms!6022
This commit is contained in:
commit
b40839e04c
@ -635,15 +635,20 @@ switch ($activeTab) {
|
|||||||
} else {
|
} else {
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
$agents_ids = [];
|
$agents_ids = [];
|
||||||
|
$servers_ids = [];
|
||||||
foreach ($id_agents as $id_agent_id) {
|
foreach ($id_agents as $id_agent_id) {
|
||||||
$server_and_agent = explode('|', $id_agent_id);
|
$server_and_agent = explode('|', $id_agent_id);
|
||||||
|
|
||||||
$agents_ids[] = $server_and_agent[1];
|
$agents_ids[] = $server_and_agent[1];
|
||||||
|
$servers_ids[] = $server_and_agent[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows = db_get_all_rows_filter(
|
$rows = db_get_all_rows_filter(
|
||||||
'tmetaconsole_agent',
|
'tmetaconsole_agent',
|
||||||
['id_tagente' => $agents_ids]
|
[
|
||||||
|
'id_tagente' => $agents_ids,
|
||||||
|
'id_tmetaconsole_setup' => $servers_ids,
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$agents = [];
|
$agents = [];
|
||||||
@ -688,7 +693,9 @@ switch ($activeTab) {
|
|||||||
|
|
||||||
foreach ($modules_serial as $data_serialized) {
|
foreach ($modules_serial as $data_serialized) {
|
||||||
$data = explode('|', $data_serialized);
|
$data = explode('|', $data_serialized);
|
||||||
$id_modules[] = $data[0];
|
if ($id_server == $data[2]) {
|
||||||
|
$id_modules[] = $data[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user