summaryrefslogtreecommitdiff
path: root/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-04-12 17:05:45 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-04-12 17:05:45 (GMT)
commitdb055e29c71b4c7d9ecde94f0550ee705633432c (patch)
tree0cd133710dd3f67d9ae2d584309ed0ff791f73a4 /plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
parent4d2320cf1c0895f287143723d6dae224d255044a (diff)
downloadroundcubemail-plugins-kolab-db055e29c71b4c7d9ecde94f0550ee705633432c.tar.gz
Remove useless 'vcard' data on contact import - fixes problem with such data
serialization in kolab_cache (Bug #1711)
Diffstat (limited to 'plugins/kolab_addressbook/lib/rcube_kolab_contacts.php')
-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 6e32bc7..9725503 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']);
}