diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 8bef86ed09..d518a3a00c 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -527,7 +527,7 @@ function treeview_printTree($type) { $first = true; foreach ($list as $item) { $lessBranchs = 0; - $tree_img_id = "tree_image_" . $type . "_" . $item['_id_']; + $tree_img_id = "tree_image_" . $type . "__" . $item['_id_']; if ($first) { if ($item != end($list)) { $img = html_print_image ("operation/tree/first_closed.png", true, array ("style" => 'vertical-align: middle;', "id" => $tree_img_id, "pos_tree" => "0")); @@ -581,7 +581,7 @@ function treeview_printTree($type) { echo ') '. ""; - echo "
"; + echo "
"; echo "\n"; } echo "\n"; diff --git a/pandora_console/operation/tree.php b/pandora_console/operation/tree.php index 5dba1169ad..4c77a2021d 100755 --- a/pandora_console/operation/tree.php +++ b/pandora_console/operation/tree.php @@ -224,7 +224,7 @@ if (is_ajax ()) { } $less = $lessBranchs; - $tree_img_id = "tree_image" . $id . "_agent_" . $type . "_" . $row["id_agente"]; + $tree_img_id = "tree_image" . $id . "_agent_" . $type . "_" . $row["server_name"] . "_" . $row["id_agente"]; if ($count != $countRows) $img = html_print_image ("operation/tree/closed.png", true, array ("style" => 'vertical-align: middle;', "id" => $tree_img_id, "pos_tree" => "2")); else { @@ -263,7 +263,7 @@ if (is_ajax ()) { html_print_image("images/dot_green.disabled.png", false, array("border" => '0', "title" => __('Quiet'), "alt" => "")); } echo ""; - echo "
"; + echo "
"; echo ""; } @@ -703,7 +703,7 @@ ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascri * id_father int use in js and ajax php, its useful when you have a two subtrees with same agent for diferent each one */ function loadSubTree(type, div_id, less_branchs, id_father, server_name) { - var id = id_father + '_' + type + '_' + div_id; + var id = id_father + '_' + type + '_' + server_name + '_' + div_id; var hiddenDiv = $('#tree_div' + id).attr('hiddenDiv'); var loadDiv = $('#tree_div' + id).attr('loadDiv');