#12943 fixed metaconsole inventory

This commit is contained in:
Daniel Cebrian 2024-02-28 14:22:57 +01:00
parent 293bb5c2fe
commit 70818c40b1
1 changed files with 6 additions and 1 deletions

View File

@ -982,7 +982,12 @@ function get_data_basic_info_sql($params, $count=false)
$groupby = '';
if ($count !== true) {
$fields = 'tagente.*, tagent_secondary_group.*, tagent_custom_data.*';
if (is_metaconsole() === true) {
$fields = 'tmetaconsole_agent.*, tagent_secondary_group.*, tagent_custom_data.*';
} else {
$fields = 'tagente.*, tagent_secondary_group.*, tagent_custom_data.*';
}
$innerjoin = 'LEFT JOIN tagente_estado ON '.$table.'.id_agente = tagente_estado.id_agente ';
$innerjoin .= 'LEFT JOIN tagent_secondary_group ON '.$table.'.id_agente = tagent_secondary_group.id_agent ';
$innerjoin .= 'LEFT JOIN tagent_custom_data ON '.$table.'.id_agente = tagent_custom_data.id_agent ';