From 0d8761d009ed0abf31f7e2dfd5eba8b703fe08c8 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 16 Aug 2016 12:16:01 +0200 Subject: [PATCH] Fixed problems with parents lines objects. Tiquet: #3936 --- .../visual_console/public_console.php | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/pandora_console/operation/visual_console/public_console.php b/pandora_console/operation/visual_console/public_console.php index 3a0d05d049..b231683746 100755 --- a/pandora_console/operation/visual_console/public_console.php +++ b/pandora_console/operation/visual_console/public_console.php @@ -66,27 +66,26 @@ if (! $layout) { exit; } -$id_group = $layout["id_group"]; -$layout_name = $layout["name"]; -$background = $layout["background"]; -$bwidth = $layout["width"]; -$bheight = $layout["height"]; - if (!isset($config['pure'])) $config['pure'] = 0; -$xhr = (bool) get_parameter('xhr'); -if ($xhr) { - $width = (int) get_parameter('width'); - if ($width <= 0) $width = null; - $height = (int) get_parameter('height'); - if ($height <= 0) $height = null; +//~ $xhr = (bool) get_parameter('xhr'); +if ($layout) { + $id_group = $layout["id_group"]; + $layout_name = $layout["name"]; + $background = $layout["background"]; + $bwidth = $layout["width"]; + $bheight = $layout["height"]; + //~ $width = (int) get_parameter('width'); + //~ if ($width <= 0) $width = null; + //~ $height = (int) get_parameter('height'); + //~ if ($height <= 0) $height = null; - ob_start(); - // Render map + //~ ob_start(); + //~ // Render map visual_map_print_visual_map($id_layout, true, true, $width, $height, '../../', true, $graph_javascript, true); - return; + //~ return; } else { echo '
';