Merge branch 'ent-10084-cacheado-busqueda-agentes-en-politicas' into 'develop'

fix diabled and remove agents to policies pandora_enterprise#10084

See merge request artica/pandorafms!5460
This commit is contained in:
Matias Didier 2023-01-30 13:48:11 +00:00
commit bb9f98ee9d
1 changed files with 10 additions and 0 deletions

View File

@ -1369,12 +1369,14 @@ function agents_get_group_agents(
'id_agente',
'alias',
'ta.id_tmetaconsole_setup AS id_server',
'ta.disabled',
];
} else {
$fields = [
'ta.id_tagente AS id_agente',
'alias',
'ta.id_tmetaconsole_setup AS id_server',
'ta.disabled',
];
}
} else {
@ -1383,6 +1385,7 @@ function agents_get_group_agents(
$fields = [
'id_agente',
'alias',
'disabled',
];
}
@ -1427,6 +1430,13 @@ function agents_get_group_agents(
$value = mb_strtoupper($row['alias'], 'UTF-8');
break;
case 'disabled':
$value = $row['alias'];
if ($row['disabled'] == 1) {
$value .= ' ('.__('Disabled').')';
}
break;
default:
$value = $row['alias'];
break;