Merge branch 'ent-6348-aadcm-agentes-con-mismo-nombre-en-politicas-modo-centralizado' into 'develop'

add server name on agents list policies

See merge request artica/pandorafms!3529
This commit is contained in:
Daniel Rodriguez 2020-11-25 19:30:27 +01:00
commit 24abcd5481
1 changed files with 11 additions and 0 deletions

View File

@ -1301,6 +1301,17 @@ function agents_get_group_agents(
$key = $row['id_agente'];
}
if ($row['id_server'] !== '') {
if (is_metaconsole()) {
$server_name = db_get_row_filter(
'tmetaconsole_setup',
'id = '.$row['id_server'].'',
'server_name'
);
$row['alias'] .= ' ('.$server_name['server_name'].')';
}
}
switch ($case) {
case 'lower':
$value = mb_strtolower($row['alias'], 'UTF-8');