summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-10-17 09:27:54 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-10-17 09:27:54 (GMT)
commit5be0b06fcbf61dacd493467b57041f808b04f1c7 (patch)
tree81d9fd46b13505bf825fcbc0448d02be0c15438d /plugins
parentd74d5ff01f0bcf8f9cd4f60af67afe3deeb188bd (diff)
downloadroundcubemail-plugins-kolab-5be0b06fcbf61dacd493467b57041f808b04f1c7.tar.gz
Remove existing id/uid attributes when inserting a new contact (#1101)
Diffstat (limited to 'plugins')
-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 ed493a6..11c46f3 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -554,6 +554,9 @@ class rcube_kolab_contacts extends rcube_addressbook
}
if (!$existing) {
+ // remove existing id attributes (#1101)
+ unset($save_data['ID'], $save_data['uid']);
+
// generate new Kolab contact item
$object = $this->_from_rcube_contact($save_data);
$saved = $this->storagefolder->save($object, 'contact');