summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-21 12:06:05 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-10-31 11:50:50 (GMT)
commitaf0f782563464c80c960952879cd02b340bb4df0 (patch)
tree9e8f7c51d678f25aa050eaffb9942a1ee47ee38a /plugins
parente7372b3b82894d9b3cc4ac0a9883a5ded0ea3004 (diff)
downloadroundcubemail-plugins-kolab-af0f782563464c80c960952879cd02b340bb4df0.tar.gz
Sort tags alphabetically (#2367)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/tasklist/tasklist.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/tasklist/tasklist.php b/plugins/tasklist/tasklist.php
index 6ebddc4..9d5544c 100644
--- a/plugins/tasklist/tasklist.php
+++ b/plugins/tasklist/tasklist.php
@@ -605,6 +605,10 @@ class tasklist extends rcube_plugin
$rec['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']);
}
+ if (!is_array($rec['tags']))
+ $rec['tags'] = (array)$rec['tags'];
+ sort($rec['tags'], SORT_LOCALE_STRING);
+
if (in_array($rec['id'], $this->collapsed_tasks))
$rec['collapsed'] = true;