diff --git a/pandora_console/include/ajax/visual_console_builder.ajax.php b/pandora_console/include/ajax/visual_console_builder.ajax.php index e854a31c49..bc36606544 100755 --- a/pandora_console/include/ajax/visual_console_builder.ajax.php +++ b/pandora_console/include/ajax/visual_console_builder.ajax.php @@ -946,6 +946,9 @@ switch ($action) { $values['image'] = $image; $values['width'] = $width; $values['height'] = $height; + if(defined('METACONSOLE') && $values['id_agent'] == 0){ + $values['id_metaconsole'] = 1; + } break; case 'group_item': $values['type'] = GROUP_ITEM; diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 8d2ee1908d..8a6b1f3b76 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -421,7 +421,7 @@ function visual_map_print_item($mode = "read", $layoutData, } } else if ($is_a_link_to_other_visualconsole) { - if (empty($layout_data['id_metaconsole'])) { + if (empty($layoutData['id_metaconsole'])) { $url = $config['homeurl'] . "index.php?sec=reporting&sec2=operation/visual_console/render_view&pure=" . $config["pure"] . "&id=" . $layoutData["id_layout_linked"]; } else { diff --git a/pandora_console/include/functions_visual_map_editor.php b/pandora_console/include/functions_visual_map_editor.php index 54db2d8008..c6a15e446d 100755 --- a/pandora_console/include/functions_visual_map_editor.php +++ b/pandora_console/include/functions_visual_map_editor.php @@ -222,7 +222,7 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) { $form_items['enable_link_row']['html'] = '' . __('Enable link') . ' ' . - html_print_checkbox('enable_link', '', !is_metaconsole(), true) . ''; + html_print_checkbox('enable_link', '', 1, true) . ''; $form_items['preview_row'] = array();