diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php
index b7271da6b5..9e06ac94e2 100755
--- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php
+++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php
@@ -91,7 +91,7 @@ $inventory_modules = array();
$date = null;
// Only avg is selected by default for the simple graphs
$only_avg = true;
-$percentil_95 = false;
+$percentil = false;
$time_compare_overlapped = false;
//Added for events items
@@ -198,7 +198,7 @@ switch ($action) {
case 'simple_graph':
$only_avg = isset($style['only_avg']) ? (bool) $style['only_avg'] : true;
- $percentil_95 = isset($style['percentil_95']) ? $style['percentil_95'] : 0;
+ $percentil = isset($style['percentil']) ? $config['percentil'] : 0;
// The break hasn't be forgotten.
case 'simple_baseline_graph':
case 'projection_graph':
@@ -1261,8 +1261,8 @@ You can of course remove the warnings, that's why we include the source and do n
-
-
+
+
@@ -2531,7 +2531,7 @@ function chooseType() {
case 'simple_graph':
$("#row_time_compare_overlapped").show();
$("#row_only_avg").show();
- if ($("#checkbox-percentil_95").prop("checked"))
+ if ($("#checkbox-percentil").prop("checked"))
$("#row_percentil").show();
// The break hasn't be forgotten, this element
// only should be shown on the simple graphs.
diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php
index 07f908c559..4721e618ce 100755
--- a/pandora_console/godmode/reporting/reporting_builder.php
+++ b/pandora_console/godmode/reporting/reporting_builder.php
@@ -1163,7 +1163,7 @@ switch ($action) {
// Warning. We are using this column to hold this value to avoid
// the modification of the database for compatibility reasons.
$style['only_avg'] = (int) get_parameter('only_avg');
- $style['percentil_95'] = (int) get_parameter('percentil_95');
+ $style['percentil'] = (int) get_parameter('percentil');
if ($label != '')
$style['label'] = $label;
else
@@ -1493,7 +1493,7 @@ switch ($action) {
// Warning. We are using this column to hold this value to avoid
// the modification of the database for compatibility reasons.
$style['only_avg'] = (int) get_parameter('only_avg');
- $style['percentil_95'] = (int) get_parameter('percentil_95');
+ $style['percentil'] = (int) get_parameter('percentil');
if ($label != '')
$style['label'] = $label;
else
diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php
index c81e94a7b2..91f08ab175 100755
--- a/pandora_console/godmode/setup/setup_visuals.php
+++ b/pandora_console/godmode/setup/setup_visuals.php
@@ -464,6 +464,11 @@ $table_chars->data[$row][1] .= __('No').' ' .
html_print_radio_button ('only_average', 0, '', $config["only_average"], true);
$row++;
+$table_chars->data[$row][0] = __('Percentil');
+$table_chars->data[$row][0] .= ui_print_help_tip(__('Allows only show the average in graphs'), true);
+$table_chars->data[$row][1] = html_print_input_text ('percentil', $config['percentil'], '', 20, 20, true);
+$row++;
+
echo "