Skip to content

Commit

Permalink
[jan] Fix regression in exporting single tags to iCalendar CATEGORIES…
Browse files Browse the repository at this point in the history
… (Bug #14699).
  • Loading branch information
yunosh committed Sep 26, 2017
1 parent 7aca73f commit d97ca15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions nag/docs/CHANGES
Expand Up @@ -2,6 +2,8 @@
v4.2.18-git
-----------

[jan] Fix regression in exporting single tags to iCalendar CATEGORIES (Bug
#14699).


-------
Expand Down
6 changes: 1 addition & 5 deletions nag/lib/Task.php
Expand Up @@ -1298,11 +1298,7 @@ public function toiCalendar(Horde_Icalendar $calendar)
}

if ($this->tags) {
if (count($this->tags) == 1) {
$vTodo->setAttribute('CATEGORIES', $this->tags[0]);
} else {
$vTodo->setAttribute('CATEGORIES', '', array(), true, $this->tags);
}
$vTodo->setAttribute('CATEGORIES', '', array(), true, array_values($this->tags));
}

/* Get the task's history. */
Expand Down
4 changes: 2 additions & 2 deletions nag/package.xml
Expand Up @@ -33,7 +33,7 @@
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
*
* [jan] Fix regression in exporting single tags to iCalendar CATEGORIES (Bug #14699).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -1847,7 +1847,7 @@
<date>2017-09-21</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
*
* [jan] Fix regression in exporting single tags to iCalendar CATEGORIES (Bug #14699).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit d97ca15

Please sign in to comment.