Skip to content
Snippets Groups Projects
Commit 2ddf78a6 authored by JediKev's avatar JediKev
Browse files

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.
parent d2ef3b1f
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment