From 4525769ffcfa8bcadf2896622e3e52e28844f7bf Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Diaz Date: Fri, 2 Oct 2015 10:48:43 +0200 Subject: [PATCH] Fixed js problem in set new parent (visual console). Ticket2765 --- .../godmode/reporting/visual_console_builder.editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 14ac36a057..73a6d7e3ac 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -1458,8 +1458,8 @@ function updateDB_visual(type, idElement , values, event, top, left) { if (end_foreach) { return; } - - if (lines[i]['node_begin'] == idElement) { + + if (lines[i]['node_end'] == idElement) { found = true; if (values['parent'] == 0) { //Erased the line