From b9eba3454beb6b296fbc5b3ce5c601bbe988c553 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 19 Oct 2017 13:33:51 +0200 Subject: [PATCH 1/2] Error fix --- .../godmode/reporting/visual_console_builder.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 22c6c4d8d4..bdb791fed6 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -1660,7 +1660,7 @@ function set_static_graph_status(idElement, image, status) { data: parameter, success: function (data) { set_static_graph_status(idElement, image, data); - if(values['show_statistics'] == 1){ + if(data['show_statistics'] == 1){ if($('#'+idElement+' table').css('float') == 'right' || $('#'+idElement+ ' table').css('float') == 'left'){ $('#'+idElement+ ' img').css('margin-top', parseInt($('#'+idElement).css('height'))/2 - parseInt($('#'+idElement+ ' img').css('height'))/2); } From d5646e80b73938e319060f607bc42a6394637508 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 19 Oct 2017 13:35:35 +0200 Subject: [PATCH 2/2] [artica/pandora_enterprise#1390] Fixed the error which caused the agent link status changed when moving a visual console item --- pandora_console/include/ajax/visual_console_builder.ajax.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/ajax/visual_console_builder.ajax.php b/pandora_console/include/ajax/visual_console_builder.ajax.php index e854a31c49..08a1b069c3 100755 --- a/pandora_console/include/ajax/visual_console_builder.ajax.php +++ b/pandora_console/include/ajax/visual_console_builder.ajax.php @@ -639,7 +639,8 @@ switch ($action) { // Don't change the label because only change the positions unset($values['label']); unset($values['label_position']); - // Don't change background color in graphs when move + // Don't change this values when move + unset($values['enable_link']); switch ($type) { case 'group_item':