diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-01 17:09:27 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-01 17:09:27 -0400 |
commit | a0004fb1731994d7308165667fb1c2a0b1ed37f9 (patch) | |
tree | 65316baf6b2010dbf161489bb9b513bd027f2f90 /app/Model/TaskFilter.php | |
parent | ea24cfb07c38e121613980e35aa8b1d2d65ac72c (diff) |
Update iCalendar library to display organizer name
Diffstat (limited to 'app/Model/TaskFilter.php')
-rw-r--r-- | app/Model/TaskFilter.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Model/TaskFilter.php b/app/Model/TaskFilter.php index 77ab1f3c..956ffbe8 100644 --- a/app/Model/TaskFilter.php +++ b/app/Model/TaskFilter.php @@ -101,6 +101,7 @@ class TaskFilter extends Base $this->query->columns( Task::TABLE.'.*', 'ua.email AS assignee_email', + 'ua.name AS assignee_name', 'ua.username AS assignee_username', 'uc.email AS creator_email', 'uc.username AS creator_username' @@ -833,7 +834,7 @@ class TaskFilter extends Base $vEvent->setUrl($this->helper->url->base().$this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))); if (! empty($task['owner_id'])) { - $vEvent->setOrganizer('MAILTO:'.($task['assignee_email'] ?: $task['assignee_username'].'@kanboard.local')); + $vEvent->setOrganizer($task['assignee_name'] ?: $task['assignee_username'], $task['assignee_email']); } if (! empty($task['creator_id'])) { |