From a747b8fa56326e48886cb0b965b916bfee76ae23 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 23 Oct 2023 14:09:38 +0200 Subject: [PATCH] fix --- pandora_console/include/ajax/os.php | 2 +- pandora_console/include/lib/Dashboard/Widgets/inventory.php | 2 ++ pandora_console/operation/agentes/ver_agente.php | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/ajax/os.php b/pandora_console/include/ajax/os.php index 058fe75578..66161c9a4b 100644 --- a/pandora_console/include/ajax/os.php +++ b/pandora_console/include/ajax/os.php @@ -314,7 +314,7 @@ if ($method === 'drawOSVersionTable') { $order_by, $pagination ); - +hd($sql, true); $count_sql = sprintf( 'SELECT id_os_version FROM tconfig_os_version diff --git a/pandora_console/include/lib/Dashboard/Widgets/inventory.php b/pandora_console/include/lib/Dashboard/Widgets/inventory.php index fe0d5fe308..4d08f4a885 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/inventory.php +++ b/pandora_console/include/lib/Dashboard/Widgets/inventory.php @@ -30,6 +30,8 @@ namespace PandoraFMS\Dashboard; global $config; +require_once $config['homedir'].'/include/functions_inventory.php'; + /** * Inventory Widget. */ diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index 383a3b40d5..fded9966c6 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -36,6 +36,7 @@ require_once $config['homedir'].'/include/functions_agents.php'; require_once $config['homedir'].'/include/functions_groups.php'; require_once $config['homedir'].'/include/functions_modules.php'; require_once $config['homedir'].'/include/functions_users.php'; +require_once $config['homedir'].'/include/functions_inventory.php'; enterprise_include_once('include/functions_metaconsole.php'); enterprise_include_once('include/functions_omnishell.php');