From c9edf8081cf0695a09794aa6b0b3785b23eac52e Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Fri, 4 Jun 2021 10:50:06 +0200 Subject: [PATCH] excluded report item from templates list --- pandora_console/include/functions_reports.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_reports.php b/pandora_console/include/functions_reports.php index 71fa925ba5..f688ea78b6 100755 --- a/pandora_console/include/functions_reports.php +++ b/pandora_console/include/functions_reports.php @@ -848,10 +848,12 @@ function reports_get_report_types($template=false, $not_editor=false) 'name' => __('Group event report'), ]; - $types['agents_inventory'] = [ - 'optgroup' => __('Inventory'), - 'name' => __('Agents inventory'), - ]; + if (!$template) { + $types['agents_inventory'] = [ + 'optgroup' => __('Inventory'), + 'name' => __('Agents inventory'), + ]; + } if ($config['enterprise_installed']) { $types['inventory'] = [