mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Implement monthly sla. Ticket#3031
This commit is contained in:
parent
bbfcf7b45e
commit
59ceab13cf
@ -112,7 +112,6 @@ function reporting_make_reporting_data($report = null, $id_report,
|
|||||||
$contents = db_get_all_rows_field_filter ('treport_content',
|
$contents = db_get_all_rows_field_filter ('treport_content',
|
||||||
'id_report', $id_report, db_escape_key_identifier('order'));
|
'id_report', $id_report, db_escape_key_identifier('order'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$datetime = strtotime($date . ' ' . $time);
|
$datetime = strtotime($date . ' ' . $time);
|
||||||
$report["datetime"] = $datetime;
|
$report["datetime"] = $datetime;
|
||||||
$report["group"] = $report['id_group'];
|
$report["group"] = $report['id_group'];
|
||||||
@ -3697,7 +3696,6 @@ function reporting_availability($report, $content) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
||||||
$avg = 0;
|
$avg = 0;
|
||||||
|
@ -534,11 +534,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 (!$config['metaconsole']) {
|
if (!$config['metaconsole'] && !$template) {
|
||||||
$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