Fixed problems with parents lines objects. Tiquet: #3936
(cherry picked from commit 0d8761d009
)
This commit is contained in:
parent
774b0f9cab
commit
2294d825e3
|
@ -66,27 +66,26 @@ if (! $layout) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($config['pure']))
|
||||||
|
$config['pure'] = 0;
|
||||||
|
|
||||||
|
//~ $xhr = (bool) get_parameter('xhr');
|
||||||
|
if ($layout) {
|
||||||
$id_group = $layout["id_group"];
|
$id_group = $layout["id_group"];
|
||||||
$layout_name = $layout["name"];
|
$layout_name = $layout["name"];
|
||||||
$background = $layout["background"];
|
$background = $layout["background"];
|
||||||
$bwidth = $layout["width"];
|
$bwidth = $layout["width"];
|
||||||
$bheight = $layout["height"];
|
$bheight = $layout["height"];
|
||||||
|
//~ $width = (int) get_parameter('width');
|
||||||
|
//~ if ($width <= 0) $width = null;
|
||||||
|
//~ $height = (int) get_parameter('height');
|
||||||
|
//~ if ($height <= 0) $height = null;
|
||||||
|
|
||||||
if (!isset($config['pure']))
|
//~ ob_start();
|
||||||
$config['pure'] = 0;
|
//~ // Render map
|
||||||
|
|
||||||
$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;
|
|
||||||
|
|
||||||
ob_start();
|
|
||||||
// Render map
|
|
||||||
visual_map_print_visual_map($id_layout, true, true, $width, $height,
|
visual_map_print_visual_map($id_layout, true, true, $width, $height,
|
||||||
'../../', true, $graph_javascript, true);
|
'../../', true, $graph_javascript, true);
|
||||||
return;
|
//~ return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo '<div id="vc-container"></div>';
|
echo '<div id="vc-container"></div>';
|
||||||
|
|
Loading…
Reference in New Issue