fixed multiple error static_graph meta

This commit is contained in:
daniel 2017-10-20 11:08:45 +02:00
parent 5ad47dba9b
commit fc5fce8f5e
3 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -222,7 +222,7 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) {
$form_items['enable_link_row']['html'] =
'<td align="left" style="">' . __('Enable link') . '</td>
<td align="left" style="">' .
html_print_checkbox('enable_link', '', !is_metaconsole(), true) . '</td>';
html_print_checkbox('enable_link', '', 1, true) . '</td>';
$form_items['preview_row'] = array();