diff --git a/include/staff/templates/task-view.tmpl.php b/include/staff/templates/task-view.tmpl.php index 500c7cec9b23307233322a01458051345fd9b485..0f6d44adf483efa54507354218d700bdb1c9b1eb 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' ));