mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed the item group in visual consoles that links other visualmap. TICKET: #1647
This commit is contained in:
parent
8baceb483a
commit
9f12469edf
@ -335,10 +335,10 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
}
|
}
|
||||||
else if ($is_a_link_to_other_visualconsole) {
|
else if ($is_a_link_to_other_visualconsole) {
|
||||||
if (empty($layout_data['id_metaconsole'])) {
|
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 {
|
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 {
|
else {
|
||||||
@ -371,9 +371,24 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case GROUP_ITEM:
|
case GROUP_ITEM:
|
||||||
|
$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'] .
|
$url = $config['homeurl'] .
|
||||||
'index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=' .
|
'index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=' .
|
||||||
$layoutData['id_group'];
|
$layoutData['id_group'];
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case LABEL:
|
case LABEL:
|
||||||
if ($layoutData['id_layout_linked'] != 0) {
|
if ($layoutData['id_layout_linked'] != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user