mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
fixed server name selector agent in metaconsole #7653
This commit is contained in:
parent
28047f2348
commit
2d2d10c489
@ -750,6 +750,7 @@ function agents_get_agents_selected($group)
|
|||||||
'id_tmetaconsole_setup',
|
'id_tmetaconsole_setup',
|
||||||
'id_agente',
|
'id_agente',
|
||||||
'alias',
|
'alias',
|
||||||
|
'server_name',
|
||||||
],
|
],
|
||||||
'AR',
|
'AR',
|
||||||
[
|
[
|
||||||
@ -764,7 +765,7 @@ function agents_get_agents_selected($group)
|
|||||||
$all = array_reduce(
|
$all = array_reduce(
|
||||||
$all,
|
$all,
|
||||||
function ($carry, $item) {
|
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;
|
return $carry;
|
||||||
},
|
},
|
||||||
[]
|
[]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user