mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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:
commit
bb9f98ee9d
@ -1369,12 +1369,14 @@ function agents_get_group_agents(
|
|||||||
'id_agente',
|
'id_agente',
|
||||||
'alias',
|
'alias',
|
||||||
'ta.id_tmetaconsole_setup AS id_server',
|
'ta.id_tmetaconsole_setup AS id_server',
|
||||||
|
'ta.disabled',
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
$fields = [
|
$fields = [
|
||||||
'ta.id_tagente AS id_agente',
|
'ta.id_tagente AS id_agente',
|
||||||
'alias',
|
'alias',
|
||||||
'ta.id_tmetaconsole_setup AS id_server',
|
'ta.id_tmetaconsole_setup AS id_server',
|
||||||
|
'ta.disabled',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1383,6 +1385,7 @@ function agents_get_group_agents(
|
|||||||
$fields = [
|
$fields = [
|
||||||
'id_agente',
|
'id_agente',
|
||||||
'alias',
|
'alias',
|
||||||
|
'disabled',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1427,6 +1430,13 @@ function agents_get_group_agents(
|
|||||||
$value = mb_strtoupper($row['alias'], 'UTF-8');
|
$value = mb_strtoupper($row['alias'], 'UTF-8');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'disabled':
|
||||||
|
$value = $row['alias'];
|
||||||
|
if ($row['disabled'] == 1) {
|
||||||
|
$value .= ' ('.__('Disabled').')';
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$value = $row['alias'];
|
$value = $row['alias'];
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user