diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index fcb8a1df52..445323e186 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($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, htmlspecialchars($title), true); diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index 8ecf0fff0d..952ee9ee54 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -1004,8 +1004,14 @@ if (check_login()) { $data[3] .= ' '.html_print_image('images/link2.png', true, ['id' => 'relations-details-'.$module['id_agente_modulo'], 'class' => 'img_help']).' '; } + $module_description = ''; + if ($module['id_modulo'] == MODULE_DATA && $module['id_policy_module'] != 0) { + $module_description = utf8_decode($module['descripcion']); + } else { + $module_description = $module['descripcion']; + } - $data[4] = ui_print_string_substr($module['descripcion'], 60, true, 8); + $data[4] = ui_print_string_substr($module_description, 60, true, 8); if ($module['datos'] != strip_tags($module['datos'])) { diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 558cc0f061..a15b0f93d9 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -95,7 +95,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals $row = []; $row['title'] = __('Warning status'); $row['data'] = $warning_status_str; - $table->data['watning_status'] = $row; + $table->data['warning_status'] = $row; // Critical Min/Max if (modules_is_string_type($module['id_tipo_modulo'])) { @@ -124,9 +124,16 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals $table->data['module_group'] = $row; // Description + $module_description = ''; + if ($module['id_modulo'] == MODULE_DATA && $module['id_policy_module'] != 0) { + $module_description = utf8_decode($module['descripcion']); + } else { + $module_description = $module['descripcion']; + } + $row = []; $row['title'] = __('Description'); - $row['data'] = ui_print_truncate_text($module['descripcion'], 'description', true, true, true, '[…]'); + $row['data'] = ui_print_truncate_text($module_description, 'description', true, true, true, '[…]'); $table->data['description'] = $row; // Tags