mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed the monthly SLA for dashboards. TICKET: #2087
This commit is contained in:
parent
c658e83ec6
commit
62fedd78c8
2
pandora_console/godmode/reporting/reporting_builder.item_editor.php
Normal file → Executable file
2
pandora_console/godmode/reporting/reporting_builder.item_editor.php
Normal file → Executable file
@ -553,7 +553,7 @@ html_print_input_hidden('id_item', $idItem);
|
|||||||
html_print_select(reports_get_report_types(false, true), 'type', $type, 'chooseType();', '', '');
|
html_print_select(reports_get_report_types(false, true), 'type', $type, 'chooseType();', '', '');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$report_type = reports_get_report_types($type);
|
$report_type = reports_get_report_types(false, true);
|
||||||
if (!empty($report_type) and isset($report_type[$type]['name']))
|
if (!empty($report_type) and isset($report_type[$type]['name']))
|
||||||
echo $report_type[$type]['name'];
|
echo $report_type[$type]['name'];
|
||||||
else
|
else
|
||||||
|
6
pandora_console/godmode/reporting/reporting_builder.list_items.php
Normal file → Executable file
6
pandora_console/godmode/reporting/reporting_builder.list_items.php
Normal file → Executable file
@ -147,7 +147,7 @@ echo '<a href="javascript: toggleFormFilter();"><b>' .
|
|||||||
array("title" => __('Toggle filter(s)'),
|
array("title" => __('Toggle filter(s)'),
|
||||||
"id" => 'image_form_filter')) . '</a>';
|
"id" => 'image_form_filter')) . '</a>';
|
||||||
|
|
||||||
$table = null;
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->data[0][0] = __('Agents');
|
$table->data[0][0] = __('Agents');
|
||||||
$table->data[0][1] = html_print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true);
|
$table->data[0][1] = html_print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true);
|
||||||
@ -412,7 +412,7 @@ echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_bui
|
|||||||
echo "</div>";
|
echo "</div>";
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
$table = null;
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->colspan[0][0] = 3;
|
$table->colspan[0][0] = 3;
|
||||||
$table->size = array();
|
$table->size = array();
|
||||||
@ -435,7 +435,7 @@ echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_bui
|
|||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
$table = null;
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->colspan[0][0] = 3;
|
$table->colspan[0][0] = 3;
|
||||||
$table->size = array();
|
$table->size = array();
|
||||||
|
@ -4011,8 +4011,9 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||||||
reporting_enterprise_sla_monthly($mini, $content, $report, $table, $item_title);
|
reporting_enterprise_sla_monthly($mini, $content, $report, $table, $item_title);
|
||||||
break;
|
break;
|
||||||
case 'SLA_services':
|
case 'SLA_services':
|
||||||
if (function_exists("reporting_enterprise_sla_services"))
|
if (function_exists("reporting_enterprise_sla_services")) {
|
||||||
reporting_enterprise_sla_services($mini, $content, $report, $table, $item_title);
|
reporting_enterprise_sla_services($mini, $content, $report, $table, $item_title);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
case 'SLA':
|
case 'SLA':
|
||||||
|
6
pandora_console/include/functions_reports.php
Normal file → Executable file
6
pandora_console/include/functions_reports.php
Normal file → Executable file
@ -528,9 +528,11 @@ function reports_get_report_types ($template = false, $not_editor = false) {
|
|||||||
|
|
||||||
$types['SLA'] = array('optgroup' => __('SLA'),
|
$types['SLA'] = array('optgroup' => __('SLA'),
|
||||||
'name' => __('S.L.A.'));
|
'name' => __('S.L.A.'));
|
||||||
if (!$template && $config['enterprise_installed']) {
|
if ($config['enterprise_installed']) {
|
||||||
$types['SLA_monthly'] = array('optgroup' => __('SLA'),
|
$types['SLA_monthly'] = array('optgroup' => __('SLA'),
|
||||||
'name' => __('Monthly S.L.A.'));
|
'name' => __('Monthly S.L.A.'));
|
||||||
|
}
|
||||||
|
if (!$template && $config['enterprise_installed']) {
|
||||||
$types['SLA_services'] = array('optgroup' => __('SLA'),
|
$types['SLA_services'] = array('optgroup' => __('SLA'),
|
||||||
'name' => __('Services S.L.A.'));
|
'name' => __('Services S.L.A.'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user