MDL-82450 tool_task: format fail delay in scheduled tasks list.

This commit is contained in:
Paul Holden
2024-11-13 07:13:29 +00:00
parent 2b337b49f9
commit a42e43ba55
2 changed files with 8 additions and 8 deletions
+4 -2
View File
@@ -398,8 +398,8 @@ class tool_task_renderer extends plugin_renderer_base {
get_string('runnow', 'tool_task')), 'task-runnow');
}
$faildelaycell = new html_table_cell($task->get_fail_delay());
if ($task->get_fail_delay()) {
if ($faildelay = $task->get_fail_delay()) {
$faildelaycell = new html_table_cell(format_time($faildelay));
$faildelaycell->text .= html_writer::div(
$this->output->single_button(
new moodle_url('/admin/tool/task/clear_fail_delay.php',
@@ -409,6 +409,8 @@ class tool_task_renderer extends plugin_renderer_base {
'task-runnow'
);
$faildelaycell->attributes['class'] = 'table-danger';
} else {
$faildelaycell = new html_table_cell(0);
}
$row = new html_table_row([