add new checkbox current date for SLA Weekly, Montly and Hourly for item and template item
Former-commit-id: c9f8c2d93cea8ecc398fe4d89e7a7b7804640cdc
This commit is contained in:
parent
c5884f1ac9
commit
eb64dbae86
|
@ -112,6 +112,8 @@ $sla_sorted_by = 0;
|
|||
$id_agents = '';
|
||||
$inventory_modules = [];
|
||||
$date = null;
|
||||
$current_month = true;
|
||||
|
||||
// Only avg is selected by default for the simple graphs.
|
||||
$fullscale = false;
|
||||
$percentil = false;
|
||||
|
@ -311,6 +313,7 @@ switch ($action) {
|
|||
// 'top_n' filed will be reused for SLA sort option.
|
||||
$sla_sorted_by = $item['top_n'];
|
||||
$period = $item['period'];
|
||||
$current_month = $item['current_month'];
|
||||
break;
|
||||
|
||||
case 'module_histogram_graph':
|
||||
|
@ -1050,6 +1053,17 @@ $class = 'databox filters';
|
|||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="row_current_month">
|
||||
<td style="font-weight:bold;">
|
||||
<?php echo __('Current month'); ?>
|
||||
</td>
|
||||
|
||||
<td style="font-weight:bold;">
|
||||
<?php html_print_checkbox('current_month', 1, $current_month); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="row_working_time">
|
||||
<td style="font-weight:bold;">
|
||||
<?php echo __('Working time'); ?>
|
||||
|
@ -4161,6 +4175,7 @@ function chooseType() {
|
|||
$("#row_line_separator").hide();
|
||||
$("#row_custom_example").hide();
|
||||
$("#row_group").hide();
|
||||
$("#row_current_month").hide();
|
||||
$("#row_working_time").hide();
|
||||
$("#row_only_display_wrong").hide();
|
||||
$("#row_combo_module").hide();
|
||||
|
@ -4342,6 +4357,7 @@ function chooseType() {
|
|||
case 'SLA_hourly':
|
||||
$("#row_description").show();
|
||||
$("#sla_list").show();
|
||||
$("#row_current_month").show();
|
||||
$("#row_working_time").show();
|
||||
$("#row_sort").show();
|
||||
$("#row_priority_mode").show();
|
||||
|
|
|
@ -1840,6 +1840,8 @@ switch ($action) {
|
|||
$values['column_separator'] = get_parameter('field');
|
||||
$values['line_separator'] = get_parameter('line');
|
||||
|
||||
$values['current_month'] = get_parameter('current_month');
|
||||
|
||||
$style = [];
|
||||
$style['show_in_same_row'] = get_parameter(
|
||||
'show_in_same_row',
|
||||
|
@ -2375,6 +2377,8 @@ switch ($action) {
|
|||
$values['column_separator'] = get_parameter('field');
|
||||
$values['line_separator'] = get_parameter('line');
|
||||
|
||||
$values['current_month'] = get_parameter('current_month');
|
||||
|
||||
$style = [];
|
||||
$style['show_in_same_row'] = get_parameter(
|
||||
'show_in_same_row',
|
||||
|
|
Loading…
Reference in New Issue