fixed multiple error static_graph meta
This commit is contained in:
parent
5ad47dba9b
commit
fc5fce8f5e
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue