#11444 fixed wizard in visual console meta

This commit is contained in:
Daniel Cebrian 2023-06-02 13:11:41 +02:00
parent f113af4b6e
commit 9d5dc354b6
1 changed files with 6 additions and 1 deletions

View File

@ -635,15 +635,20 @@ switch ($activeTab) {
} else {
if (is_metaconsole() === true) {
$agents_ids = [];
$servers_ids = [];
foreach ($id_agents as $id_agent_id) {
$server_and_agent = explode('|', $id_agent_id);
$agents_ids[] = $server_and_agent[1];
$servers_ids[] = $server_and_agent[0];
}
$rows = db_get_all_rows_filter(
'tmetaconsole_agent',
['id_tagente' => $agents_ids]
[
'id_tagente' => $agents_ids,
'id_tmetaconsole_setup' => $servers_ids,
]
);
$agents = [];