From 7ee0cd3bd6a77df7dc6100b9ac4f77c4669c4b34 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 10 Aug 2017 18:40:25 +0200 Subject: [PATCH] Fix exporting tags to CATEGORIES. --- kronolith/lib/Event.php | 3 +-- mnemo/lib/Driver.php | 2 +- nag/lib/Task.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index f19f07494fa..cc3c418e93c 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -758,8 +758,7 @@ public function toiCalendar($calendar, $includeFiles = true) // Tags if ($this->tags) { - $tags = implode(', ', $this->tags); - $vEvent->setAttribute('CATEGORIES', $tags); + $vEvent->setAttribute('CATEGORIES', '', array(), true, $this->tags); } // Location diff --git a/mnemo/lib/Driver.php b/mnemo/lib/Driver.php index ee9671bc181..1b9873d48b5 100644 --- a/mnemo/lib/Driver.php +++ b/mnemo/lib/Driver.php @@ -512,7 +512,7 @@ public function toiCalendar($memo, $calendar) $vnote->setAttribute('SUMMARY', $memo['desc']); if (!empty($memo['tags'])) { - $vnote->setAttribute('CATEGORIES', implode(', ', $memo['tags'])); + $vnote->setAttribute('CATEGORIES', '', array(), true, $memo['tags']); } /* Get the note's history. */ diff --git a/nag/lib/Task.php b/nag/lib/Task.php index 59eca264122..2358d168c67 100644 --- a/nag/lib/Task.php +++ b/nag/lib/Task.php @@ -1385,7 +1385,7 @@ public function toiCalendar(Horde_Icalendar $calendar) } if ($this->tags) { - $vTodo->setAttribute('CATEGORIES', implode(', ', $this->tags)); + $vTodo->setAttribute('CATEGORIES', '', array(), true, $this->tags); } /* Get the task's history. */