summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-11-27 12:58:07 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-11-27 12:58:07 (GMT)
commit7048e00350a7e263ff64709e29e8a61b29646aaa (patch)
tree0e2d7546ff5ed2765e56ebf646fccca4359106a1
parent17ce2675873d911c49b51be085d19b5afa35f57e (diff)
downloadroundcubemail-plugins-kolab-7048e00350a7e263ff64709e29e8a61b29646aaa.tar.gz
Preserve categories when saving contact in web client (#2608)
-rw-r--r--plugins/kolab_addressbook/lib/rcube_kolab_contacts.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index 674f859..bc20970 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -1203,6 +1203,9 @@ class rcube_kolab_contacts extends rcube_addressbook
$contact['address'] = $addresses;
+ // categories are not supported in the web client but should be preserved (#2608)
+ $contact['categories'] = $old['categories'];
+
// copy meta data (starting with _) from old object
foreach ((array)$old as $key => $val) {
if (!isset($contact[$key]) && $key[0] == '_')