This commit is contained in:
José González 2022-06-10 10:40:28 +02:00
parent 32c62e9f93
commit bb17645c88
1 changed files with 3 additions and 3 deletions

View File

@ -258,8 +258,8 @@ class TopNWidget extends Widget
// Order.
$fields = [
1 => __('Descending'),
2 => __('Ascending'),
1 => __('Ascending'),
2 => __('Descending'),
3 => __('By agent name'),
];
@ -466,7 +466,7 @@ class TopNWidget extends Widget
];
foreach ($modules as $module) {
$module['aliasAgent'] = ui_print_truncate_text($module['aliasAgent'], 20);
$module['aliasAgent'] = ui_print_truncate_text($module['aliasAgent'], 20, false, true, false);
$item_name = $module['aliasAgent'].' - '.$module['nameModule'];
$data_hbar[$item_name]['g'] = $module[$display];
// Calculation of max-min values for show in graph.