From 5b08e71ec6666f9c04ff7b901f69f1e73fd52569 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Thu, 6 Feb 2020 13:02:58 +0100 Subject: [PATCH] Solved issue with UTF8 chars in configuration_data field --- pandora_console/godmode/agentes/module_manager.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 78327f7dfd..38faf0e7df 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -830,7 +830,14 @@ foreach ($modules as $module) { $data[4] .= ui_print_help_tip(__('The policy modules of data type will only update their intervals when policy is applied.'), true); } - $data[5] = ui_print_truncate_text(utf8_decode($module['descripcion']), 'description', false); + + if ($module['id_modulo'] == MODULE_DATA && $module['id_policy_module'] != 0) { + $module_description = utf8_decode($module['descripcion']); + } else { + $module_description = $module['descripcion']; + } + + $data[5] = ui_print_truncate_text($module_description, 'description', false); $data[6] = ui_print_status_image($status, $title, true);