Fixed the item group in visual consoles that links other visualmap. TICKET: #1647
This commit is contained in:
parent
a3210c6335
commit
8b961cffba
|
@ -335,10 +335,10 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||
}
|
||||
else if ($is_a_link_to_other_visualconsole) {
|
||||
if (empty($layout_data['id_metaconsole'])) {
|
||||
$url_vc = $config['homeurl'] . "index.php?sec=reporting&sec2=operation/visual_console/render_view&pure=" . $config["pure"] . "&id=" . $layout_data["id_layout_linked"];
|
||||
$url = $config['homeurl'] . "index.php?sec=reporting&sec2=operation/visual_console/render_view&pure=" . $config["pure"] . "&id=" . $layoutData["id_layout_linked"];
|
||||
}
|
||||
else {
|
||||
$url_vc = "index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=1&id_visualmap=" . $layout_data["id_layout_linked"] . "&refr=0";
|
||||
$url = "index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=1&id_visualmap=" . $layoutData["id_layout_linked"] . "&refr=0";
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -371,9 +371,24 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||
|
||||
break;
|
||||
case GROUP_ITEM:
|
||||
$url = $config['homeurl'] .
|
||||
'index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=' .
|
||||
$layoutData['id_group'];
|
||||
$is_a_link_to_other_visualconsole = false;
|
||||
if ($layoutData['id_layout_linked'] != 0) {
|
||||
$is_a_link_to_other_visualconsole = true;
|
||||
}
|
||||
|
||||
if ($is_a_link_to_other_visualconsole) {
|
||||
if (empty($layout_data['id_metaconsole'])) {
|
||||
$url = $config['homeurl'] . "index.php?sec=reporting&sec2=operation/visual_console/render_view&pure=" . $config["pure"] . "&id=" . $layoutData["id_layout_linked"];
|
||||
}
|
||||
else {
|
||||
$url = "index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=1&id_visualmap=" . $layoutData["id_layout_linked"] . "&refr=0";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$url = $config['homeurl'] .
|
||||
'index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=' .
|
||||
$layoutData['id_group'];
|
||||
}
|
||||
break;
|
||||
case LABEL:
|
||||
if ($layoutData['id_layout_linked'] != 0) {
|
||||
|
|
Loading…
Reference in New Issue