Fix
This commit is contained in:
parent
32c62e9f93
commit
bb17645c88
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue