Skip to content
Snippets Groups Projects
Unverified Commit 2ba062f3 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4437 from aydreeihn/issue/task-assignee

Task Assigned Team Issue:
parents e5024184 9c457af3
Branches
Tags
No related merge requests found
......@@ -79,9 +79,13 @@ if ($count) { ?>
$id = $task->getId();
$access = $task->checkStaffPerm($thisstaff);
$assigned='';
if ($task->staff)
$assigned=sprintf('<span class="Icon staffAssigned">%s</span>',
Format::truncate($task->staff->getName(),40));
if ($task->staff || $task->team) {
$assigneeType = $task->staff ? 'staff' : 'team';
$icon = $assigneeType == 'staff' ? 'staffAssigned' : 'teamAssigned';
$assigned=sprintf('<span class="Icon %s">%s</span>',
$icon,
Format::truncate($task->getAssigned(),40));
}
$status = $task->isOpen() ? '<strong>open</strong>': 'closed';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment