From bd6540da876fc837cd99fe9d2a3e419496bf33cb Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 25 Feb 2020 11:09:11 +0100 Subject: [PATCH 1/2] fixed visual bug in table --- pandora_console/include/functions_cron.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_console/include/functions_cron.php b/pandora_console/include/functions_cron.php index 5789764a3a..b879259c45 100644 --- a/pandora_console/include/functions_cron.php +++ b/pandora_console/include/functions_cron.php @@ -458,6 +458,7 @@ function cron_list_table() $table->head[5] = __('Last run'); $table->head[6] = __('Group'); $table->head[7] = __('Actions'); + $table->cellstyle[0][2] = 'word-break: break-word;'; $table->align[7] = 'left'; foreach ($defined_tasks as $task) { From ef704895b108e425c16bda6e8eab972ef0ecb28e Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 10 Mar 2020 17:23:19 +0100 Subject: [PATCH 2/2] truncate long texts --- pandora_console/include/functions_cron.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora_console/include/functions_cron.php b/pandora_console/include/functions_cron.php index b879259c45..abc7d45984 100644 --- a/pandora_console/include/functions_cron.php +++ b/pandora_console/include/functions_cron.php @@ -458,7 +458,6 @@ function cron_list_table() $table->head[5] = __('Last run'); $table->head[6] = __('Group'); $table->head[7] = __('Actions'); - $table->cellstyle[0][2] = 'word-break: break-word;'; $table->align[7] = 'left'; foreach ($defined_tasks as $task) { @@ -555,7 +554,7 @@ function cron_list_table() $data[2] .= '
- '.__('Template').': '; $data[2] .= ''; $data[2] .= $template['name'].''; - $data[2] .= '
- '.__('Agents').': '.$agents_id.''; + $data[2] .= '
- '.__('Agents').': '.ui_print_truncate_text($agents_id, 120).''; $data[2] .= '
- '.__('Report per agent').': '.$report_per_agent.''; $data[2] .= '
- '.__('Report name').': '.$report_name.''; $data[2] .= '
- '.__('Email').": ".$email.'';