summaryrefslogtreecommitdiff
path: root/app/Templates/task_table.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-08-16 17:53:07 -0700
committerFrédéric Guillot <fred@kanboard.net>2014-08-16 17:53:07 -0700
commit658123a2328867a87da59ca660a7044d99eea22c (patch)
treee9d278eeba1699b13823dc7b115dce56635d0823 /app/Templates/task_table.php
parentdb3c006be80d6690892b11608619f9683824e21b (diff)
The fullname is displayed instead of the username if not empty
Diffstat (limited to 'app/Templates/task_table.php')
-rw-r--r--app/Templates/task_table.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Templates/task_table.php b/app/Templates/task_table.php
index ad513452..d10d3f42 100644
--- a/app/Templates/task_table.php
+++ b/app/Templates/task_table.php
@@ -25,8 +25,8 @@
<a href="?controller=task&amp;action=show&amp;task_id=<?= $task['id'] ?>" title="<?= t('View this task') ?>"><?= Helper\escape($task['title']) ?></a>
</td>
<td>
- <?php if ($task['username']): ?>
- <?= Helper\escape($task['username']) ?>
+ <?php if ($task['assignee_username']): ?>
+ <?= Helper\escape($task['assignee_name'] ?: $task['assignee_username']) ?>
<?php else: ?>
<?= t('Unassigned') ?>
<?php endif ?>