From 1998db331765eda2fe28887207960bcf2c3737ee Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 27 Jan 2020 11:52:13 +0100 Subject: [PATCH] Fixed date in availability graph --- pandora_console/include/chart_generator.php | 3 ++- pandora_console/include/functions_graph.php | 3 ++- pandora_console/include/graphs/functions_flot.php | 11 ++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/chart_generator.php b/pandora_console/include/chart_generator.php index fe356b737c..22b73e078b 100644 --- a/pandora_console/include/chart_generator.php +++ b/pandora_console/include/chart_generator.php @@ -291,7 +291,8 @@ if (file_exists('languages/'.$user_language.'.mo') === true) { $params['not_interactive'], $params['ttl'], $params['widgets'], - $params['show'] + $params['show'], + $params['date_to'] ); break; diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 12d9fa7c2d..147992d733 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -2840,7 +2840,8 @@ function graph_sla_slicebar( true, $ttl, false, - false + false, + $date ); } diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 69fee8a89a..13ca20f2bd 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -754,7 +754,8 @@ function flot_slicesbar_graph( $not_interactive=0, $ttl=1, $widgets=false, - $show=true + $show=true, + $date_to=false ) { global $config; @@ -779,6 +780,7 @@ function flot_slicesbar_graph( 'widgets' => $widgets, 'show' => $show, 'return_img_base_64' => true, + 'date_to' => $date_to, ]; $graph = '