From 5be0b06fcbf61dacd493467b57041f808b04f1c7 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 17 Oct 2012 11:27:54 +0200 Subject: [PATCH] Remove existing id/uid attributes when inserting a new contact (#1101) --- 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 ed493a60..11c46f35 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');