From 89d2f831baee976897f319c4d80d2c26adcb8c3a Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 27 Nov 2018 11:35:59 +0100 Subject: [PATCH 1/3] fixed labels not showing for percentile item in visual console builder --- pandora_console/include/functions_visual_map.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 1451cb80d3..f5759b394c 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -2049,6 +2049,7 @@ function visual_map_print_item($mode = "read", $layoutData, } echo $img; + echo io_safe_output($text); break; case CIRCULAR_INTERIOR_PROGRESS_BAR: From d48c22885555bc1428ec30b4e794ac3a19a85803 Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 27 Nov 2018 15:25:16 +0100 Subject: [PATCH 2/3] fixed label not showing on page reload in visual console's percentile item --- .../godmode/reporting/visual_console_builder.editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 055762abc8..d409e95525 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -801,6 +801,10 @@ function readFields() { values['label'] = $("input[name=label]").val(); var text = tinymce.get('text-label').getContent(); values['label'] = text; + + if ($("input[name=percentile_label]").val().length > 0) + values['label'] = $("input[name=percentile_label]").val(); + values['line-height'] = $("#text-label_ifr").contents().find("p").css('line-height'); values['type_graph'] = $("select[name=type_graph]").val(); values['image'] = $("select[name=image]").val(); From 1cdc9c0d7fb2f7672179bec71fc4e4308327a187 Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 27 Nov 2018 18:23:18 +0100 Subject: [PATCH 3/3] fixed label not showing on reload in visual console builder's percentile item for types bubble, circular progress bar interior and percentile --- pandora_console/include/functions_visual_map.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index f5759b394c..35190e4aee 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -1963,6 +1963,7 @@ function visual_map_print_item($mode = "read", $layoutData, } echo $img; + echo io_safe_output($text); break; case PERCENTILE_BUBBLE: @@ -2006,6 +2007,7 @@ function visual_map_print_item($mode = "read", $layoutData, } echo $img; + echo io_safe_output($text); break; case CIRCULAR_PROGRESS_BAR: @@ -2094,6 +2096,7 @@ function visual_map_print_item($mode = "read", $layoutData, } echo $img; + echo io_safe_output($text); break; case MODULE_GRAPH: