Skip to content

Commit

Permalink
Fix exporting tags to CATEGORIES.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Aug 10, 2017
1 parent 5353e7c commit 7ee0cd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions kronolith/lib/Event.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mnemo/lib/Driver.php
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion nag/lib/Task.php
Expand Up @@ -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. */
Expand Down

0 comments on commit 7ee0cd3

Please sign in to comment.