diff --git a/pandora_console/include/functions_inventory.php b/pandora_console/include/functions_inventory.php index 3fd8c3f198..a9d3bb910c 100644 --- a/pandora_console/include/functions_inventory.php +++ b/pandora_console/include/functions_inventory.php @@ -982,7 +982,7 @@ function get_data_basic_info_sql($params, $count=false) $groupby = ''; if ($count !== true) { - $fields = '*'; + $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 ';