diff --git a/pandora_console/include/chart_generator.php b/pandora_console/include/chart_generator.php
index e22fb4d325..b2eb97bd1b 100644
--- a/pandora_console/include/chart_generator.php
+++ b/pandora_console/include/chart_generator.php
@@ -136,37 +136,38 @@ if (file_exists('languages/'.$user_language.'.mo') === true) {
$l10n->load_tables();
}
+$hack_metaconsole = (is_metaconsole() === true) ? '../../' : '';
?>
Pandora FMS Graph
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
;'>
createPage();
+ $curl = curl_init();
- // Navigate to an URL.
- $navigation = $page->navigate($url.'?data='.urlencode(json_encode($data)));
- $navigation->waitForNavigation(Page::DOM_CONTENT_LOADED);
+ curl_setopt($curl, CURLOPT_URL, $url);
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
+ curl_setopt($curl, CURLOPT_POSTFIELDS, ['data' => json_encode($data)]);
+
+ $response = curl_exec($curl);
+
+ curl_close($curl);
+
+ $page->setHtml($response);
// Dynamic.
$dynamic_height = $page->evaluate('document.getElementById("container-chart-generator-item").clientHeight')->getReturnValue();
diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php
index d1856b7b4c..97f254b021 100644
--- a/pandora_console/include/graphs/functions_flot.php
+++ b/pandora_console/include/graphs/functions_flot.php
@@ -755,7 +755,7 @@ function flot_slicesbar_graph(
'date_to' => $date_to,
'server_id' => $server_id,
];
- // TO-DO Cambiar esto para que se pase por POST, NO SE PUEDE PASAR POR GET.
+
update_check_config_token($tokem_config, json_encode($graph_data));
$_SESSION['slicebar'] = $tokem_config;
$_SESSION['slicebar_value'] = json_encode($graph_data);