fixed server name selector agent in metaconsole #7653

This commit is contained in:
Daniel Barbero Martin 2022-03-09 17:05:03 +01:00
parent 28047f2348
commit 2d2d10c489
1 changed files with 2 additions and 1 deletions

View File

@ -750,6 +750,7 @@ function agents_get_agents_selected($group)
'id_tmetaconsole_setup',
'id_agente',
'alias',
'server_name',
],
'AR',
[
@ -764,7 +765,7 @@ function agents_get_agents_selected($group)
$all = array_reduce(
$all,
function ($carry, $item) {
$carry[$item['id_tmetaconsole_setup'].'|'.$item['id_tagente']] = $item['alias'];
$carry[$item['id_tmetaconsole_setup'].'|'.$item['id_tagente']] = $item['server_name'].' » '.$item['alias'];
return $carry;
},
[]