Merge branch 'ent-11470-sql-error-en-inventory-de-la-metaconsola-2' into 'develop'

Ent 11470 sql error en inventory de la metaconsola 2

See merge request artica/pandorafms!6037
This commit is contained in:
Rafael Ameijeiras 2023-06-08 11:50:20 +00:00
commit 8a29686241
1 changed files with 5 additions and 1 deletions

View File

@ -149,7 +149,11 @@ if (is_ajax() === true) {
$tmp->alias .= $server['server_name'].' » ';
}
$id = !empty($agent['id_agente']) ? $agent['id_agente'] : $agent['id_agent'];
if (is_metaconsole() === true) {
$id = !empty($agent['id_agente']) ? $agent['id_agente'] : $agent['id_tagente'];
} else {
$id = !empty($agent['id_agente']) ? $agent['id_agente'] : $agent['id_agent'];
}
$tmp->alias .= $agent['alias'];
$ip = '<em>'.__('N/A').'</em>';