diff --git a/include/staff/templates/task-view.tmpl.php b/include/staff/templates/task-view.tmpl.php
index 5f46f07abd3aeb47056324b801fd19dd388713e0..47acc7a7cab3cb527026fcd8705953e737f42a01 100644
--- a/include/staff/templates/task-view.tmpl.php
+++ b/include/staff/templates/task-view.tmpl.php
@@ -130,8 +130,7 @@ if ($task->isOverdue())
                 class="action-dropdown anchor-right">
                 <ul>
             <?php foreach ($actions as $a => $action) { ?>
-                    <li class="<?php
-                            echo $action['class'] ?: 'task-action'; ?>">
+                    <li <?php if ($action['class']) echo sprintf("class='%s'", $action['class']); ?> >
                         <a class="no-pjax task-action" <?php
                             if ($action['dialog'])
                                 echo sprintf("data-dialog-config='%s'", $action['dialog']);