Fixed problems with graphs when using visual console maps and pure vision.

This commit is contained in:
m-lopez-f 2017-03-02 15:50:05 +01:00
parent 217cffbf05
commit 99c176daf8
2 changed files with 4 additions and 3 deletions

View File

@ -906,7 +906,8 @@ else{
}
}
$only_image = !$graph_javascript || $isExternalLink;
$only_image = !$graph_javascript && $isExternalLink;
if ($layoutData['id_custom_graph'] != 0) {
// Show only avg on the visual console
if (get_parameter('action') == 'edit') {

View File

@ -149,7 +149,7 @@ if ($config['pure']) {
// Container of the visual map (ajax loaded)
echo '<div id="vc-container">' .
visual_map_print_visual_map ($id_layout, true, true,
null, null, '', false, $graph_javascript)
null, null, '', false, true)
. '</div>';
// Floating menu - Start
@ -204,7 +204,7 @@ if ($config['pure']) {
<?php
}
else {
visual_map_print_visual_map ($id_layout, true, true, null, null, '', false, $graph_javascript, true);
visual_map_print_visual_map ($id_layout, true, true, null, null, '', false, true, true);
}
ui_require_javascript_file('wz_jsgraphics');