diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-05 12:23:00 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-05 12:23:00 -0400 |
commit | 4438e03c62962ecf6265eddcb3d2c6e761638cda (patch) | |
tree | 426da61f5b1721397b56548f13d429c21b3b8976 /app/Model | |
parent | 45774afafcae850ecf71ea90b426fffc2c6f0628 (diff) |
Set the assignee as organizer for ical events
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/TaskFilter.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Model/TaskFilter.php b/app/Model/TaskFilter.php index c88be830..082318f1 100644 --- a/app/Model/TaskFilter.php +++ b/app/Model/TaskFilter.php @@ -716,11 +716,11 @@ class TaskFilter extends Base $vEvent->setSummary(t('#%d', $task['id']).' '.$task['title']); $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['creator_id'])) { - $vEvent->setOrganizer('MAILTO:'.($task['creator_email'] ?: $task['creator_username'].'@kanboard.local')); + if (! empty($task['owner_id'])) { + $vEvent->setOrganizer('MAILTO:'.($task['assignee_email'] ?: $task['assignee_username'].'@kanboard.local')); } - if (! empty($task['owner_id'])) { + if (! empty($task['creator_id'])) { $attendees = new Attendees; $attendees->add('MAILTO:'.($task['creator_email'] ?: $task['creator_username'].'@kanboard.local')); $vEvent->setAttendees($attendees); |