diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index ec336eb290..d785a6a4bd 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -2633,7 +2633,8 @@ $class = 'databox filters'; 'render_definition', 3, 25, - $render_definition + $render_definition, + 'style=width:100%' ); ?> diff --git a/pandora_console/include/chart_generator.php b/pandora_console/include/chart_generator.php index c0ba8eb3ac..7bc4785011 100644 --- a/pandora_console/include/chart_generator.php +++ b/pandora_console/include/chart_generator.php @@ -47,6 +47,7 @@ if (json_last_error() === JSON_ERROR_NONE) { $data = $data_decoded['data']; $session_id = $data_decoded['session_id']; $type_graph_pdf = $data_decoded['type_graph_pdf']; + $id_user = $data_decoded['id_user']; $data_combined = []; if (isset($data_decoded['data_combined']) === true) { @@ -62,6 +63,10 @@ if (json_last_error() === JSON_ERROR_NONE) { // Initialize session. global $config; +// Care whit this!!! check_login not working if you remove this. +$config['id_user'] = $id_user; +$_SESSION['id_usuario'] = $id_user; + // Try to initialize session using existing php session id. $user = new PandoraFMS\User(['phpsessionid' => $session_id]); if (check_login(false) === false) { @@ -82,6 +87,7 @@ if (check_login(false) === false) {