From 8dcf516196aa0ed10107902ae0f489e32603f06c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 13 Jul 2023 13:45:18 +0200 Subject: [PATCH] #11732 fix graphs for email --- pandora_console/include/chart_generator.php | 3 +++ pandora_console/include/functions.php | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/pandora_console/include/chart_generator.php b/pandora_console/include/chart_generator.php index b2eb97bd1b..e8ee5f294c 100644 --- a/pandora_console/include/chart_generator.php +++ b/pandora_console/include/chart_generator.php @@ -165,6 +165,9 @@ $hack_metaconsole = (is_metaconsole() === true) ? '../../' : ''; + diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index f0a5115d6f..ee4ee7d1ab 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -4348,6 +4348,11 @@ function generator_chart_to_pdf( curl_close($curl); $page->setHtml($response); + /* + //For debug url with parameters. + $navigation = $page->navigate($url.'?data='.urlencode(json_encode($data))); + $navigation->waitForNavigation(Page::DOM_CONTENT_LOADED); + */ // Dynamic. $dynamic_height = $page->evaluate('document.getElementById("container-chart-generator-item").clientHeight')->getReturnValue();