summaryrefslogtreecommitdiff
path: root/plugins/tasklist/drivers
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-21 08:28:25 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-21 08:29:12 (GMT)
commit31b6446a2b4770e592ce993345a09ee8784c723c (patch)
tree726ae57e3d3b92fe728dec9529a221f9f379d85a /plugins/tasklist/drivers
parenta9805a90637468d1c753c55965c8101b72f0a714 (diff)
downloadroundcubemail-plugins-kolab-31b6446a2b4770e592ce993345a09ee8784c723c.tar.gz
Small improvements for task attendee display
Diffstat (limited to 'plugins/tasklist/drivers')
-rw-r--r--plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
index 67baa4c..9a37df0 100644
--- a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
+++ b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
@@ -809,6 +809,17 @@ class tasklist_kolab_driver extends tasklist_driver
$task['alarms'] = $record['alarms'];
}
+ if (!empty($task['attendees'])) {
+ foreach ((array)$task['attendees'] as $i => $attendee) {
+ if (is_array($attendee['delegated-from'])) {
+ $task['attendees'][$i]['delegated-from'] = join(', ', $attendee['delegated-from']);
+ }
+ if (is_array($attendee['delegated-to'])) {
+ $task['attendees'][$i]['delegated-to'] = join(', ', $attendee['delegated-to']);
+ }
+ }
+ }
+
if (!empty($record['_attachments'])) {
foreach ($record['_attachments'] as $key => $attachment) {
if ($attachment !== false) {