Skip to content
Snippets Groups Projects
Commit 93e7a3f3 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #2376 from protich/issue/task-print


bug: Task print

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents e10eb42c 81995101
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ $actions = array();
$actions += array(
'print' => array(
'href' => sprintf('tasks.php?id=%d&a=print', $task->getId()),
'class' => 'none',
'class' => 'no-pjax',
'icon' => 'icon-print',
'label' => __('Print')
));
......@@ -136,6 +136,11 @@ if ($task->isOverdue())
echo sprintf("data-redirect='%s'", $action['redirect']);
?>
href="<?php echo $action['href']; ?>"
<?php
if (isset($action['href']) &&
$action['href'][0] != '#') {
echo 'target="blank"';
} ?>
><i class="<?php
echo $action['icon'] ?: 'icon-tag'; ?>"></i> <?php
echo $action['label']; ?></a>
......
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