From 3d4485438dd3f30a2914cfce08062b5af72eebe0 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 20 Nov 2017 10:37:07 +0100 Subject: [PATCH] fixed error visual console remove link when edit console --- pandora_console/include/functions_visual_map.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 9f37d101c1..65e51f57c0 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -1537,7 +1537,12 @@ function visual_map_print_item($mode = "read", $layoutData, if ($link) { echo ""; } - + + //for clean link text from bbdd only edit_visualmap + if (get_parameter('action') == 'edit' || get_parameter('operation') == 'edit_visualmap') { + $text = preg_replace("/<\/*a.*?>/", '', $text); + } + switch ($type) { case BOX_ITEM: if ($width == 0 || $width == 0) {