From 2ddf78a69fcbfdab163bcdd7da462389076623d7 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Fri, 28 Jul 2017 09:27:13 -0500 Subject: [PATCH] oops: Fix Task Print This addresses issue 3782 where clicking Print on a Task gives you a blank popup that hangs. This is because the Print button was being treated as a Task action when it is actually not one. This adds a ternary operator to give the proper Task Actions the `task-action` class and gives the Print button no class. --- include/staff/templates/task-view.tmpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/templates/task-view.tmpl.php b/include/staff/templates/task-view.tmpl.php index b2dff1253..0fe384b58 100644 --- a/include/staff/templates/task-view.tmpl.php +++ b/include/staff/templates/task-view.tmpl.php @@ -268,7 +268,7 @@ if ($task->isOverdue()) <?php foreach ($actions as $action) {?> <span class="action-button <?php echo $action['class'] ?: ''; ?>"> - <a class="task-action" + <a class="<?php echo ($action['class'] == 'no-pjax') ? '' : 'task-action'; ?>" <?php if ($action['dialog']) echo sprintf("data-dialog-config='%s'", $action['dialog']); -- GitLab