From 6629d0fe1c289b39e2de9618b5a3ecdb28464945 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 21 Jul 2015 13:17:02 +0200 Subject: [PATCH] Added feature. The report items SLA, Availaibily and General do not show the not init modules. TICKET: #2510 --- pandora_console/include/functions_reporting.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index f299d90768..70030ad32e 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -4369,7 +4369,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f } } - if (modules_is_disable_agent($sla['id_agent_module'])) { + if (modules_is_disable_agent($sla['id_agent_module']) || + modules_is_not_init($item['id_agent_module'])) { if (($config ['metaconsole'] == 1) && defined('METACONSOLE')) { //Restore db connection @@ -5665,7 +5666,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f } } - if (modules_is_disable_agent($item['id_agent_module'])) { + if (modules_is_disable_agent($item['id_agent_module']) || + modules_is_not_init($item['id_agent_module'])) { //Restore dbconnection if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) { metaconsole_restore_db(); @@ -5992,7 +5994,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f } } - if (modules_is_disable_agent($row['id_agent_module'])) { + if (modules_is_disable_agent($row['id_agent_module']) + || modules_is_not_init($item['id_agent_module'])) { //Restore dbconnection if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) { @@ -6193,7 +6196,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f } } - if (modules_is_disable_agent($g['id_agent_module'])) { + if (modules_is_disable_agent($g['id_agent_module']) + || modules_is_not_init($item['id_agent_module'])) { //Restore dbconnection if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) { metaconsole_restore_db();