diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2013-10-21 12:06:05 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-10-31 11:50:50 (GMT) |
commit | af0f782563464c80c960952879cd02b340bb4df0 (patch) | |
tree | 9e8f7c51d678f25aa050eaffb9942a1ee47ee38a | |
parent | e7372b3b82894d9b3cc4ac0a9883a5ded0ea3004 (diff) | |
download | roundcubemail-plugins-kolab-af0f782563464c80c960952879cd02b340bb4df0.tar.gz |
Sort tags alphabetically (#2367)
-rw-r--r-- | plugins/tasklist/tasklist.php | 4 |
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; |