From 7048e00350a7e263ff64709e29e8a61b29646aaa Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 27 Nov 2013 13:58:07 +0100 Subject: [PATCH] Preserve categories when saving contact in web client (#2608) --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index 674f8595..bc209704 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] == '_')