diff --git a/include/staff/templates/task-view.tmpl.php b/include/staff/templates/task-view.tmpl.php index 0fe384b58e78a58fedf0c631e6334fd213046b29..fdfb47088049821ce9a4692dda82176d30204574 100644 --- a/include/staff/templates/task-view.tmpl.php +++ b/include/staff/templates/task-view.tmpl.php @@ -78,7 +78,7 @@ if ($role->hasPerm(Task::PERM_DELETE)) { 'delete' => array( 'href' => sprintf('#tasks/%d/delete', $task->getId()), 'icon' => 'icon-trash', - 'class' => 'red button', + 'class' => (strpos($_SERVER['REQUEST_URI'], 'tickets.php') !== false) ? 'danger' : 'red button', 'label' => __('Delete'), 'redirect' => 'tasks.php' ));