From db055e29c71b4c7d9ecde94f0550ee705633432c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 12 Apr 2013 19:05:45 +0200 Subject: [PATCH] Remove useless 'vcard' data on contact import - fixes problem with such data serialization in kolab_cache (Bug #1711) --- 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 6e32bc73..97255030 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -1156,6 +1156,9 @@ class rcube_kolab_contacts extends rcube_addressbook } } + // When importing contacts 'vcard' data is added, we don't need it (Bug #1711) + unset($contact['vcard']); + // add empty values for some fields which can be removed in the UI return array_filter($contact) + array('nickname' => '', 'birthday' => '', 'anniversary' => '', 'freebusyurl' => '', 'photo' => $contact['photo']); }