From cf1d04d5f468e7c228c4a1cbb4b9a4794e885dbe Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 19 Feb 2015 20:41:13 +0100 Subject: [PATCH] Removed some items without templates support from the templates item type select --- pandora_console/include/functions_reports.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_reports.php b/pandora_console/include/functions_reports.php index 6209de8f5f..62b1c924c5 100644 --- a/pandora_console/include/functions_reports.php +++ b/pandora_console/include/functions_reports.php @@ -528,7 +528,7 @@ function reports_get_report_types ($template = false, $not_editor = false) { $types['SLA'] = array('optgroup' => __('SLA'), 'name' => __('S.L.A.')); - if ($config['enterprise_installed']) { + if (!$template && $config['enterprise_installed']) { $types['SLA_monthly'] = array('optgroup' => __('SLA'), 'name' => __('Monthly S.L.A.')); $types['SLA_services'] = array('optgroup' => __('SLA'), @@ -590,8 +590,10 @@ function reports_get_report_types ($template = false, $not_editor = false) { 'name' => __('Alert report module')); $types['alert_report_agent'] = array('optgroup' => __('Alerts'), 'name' => __('Alert report agent')); - $types['alert_report_group'] = array('optgroup' => __('Alerts'), - 'name' => __('Alert report group')); + if (!$template) { + $types['alert_report_group'] = array('optgroup' => __('Alerts'), + 'name' => __('Alert report group')); + }