Remove existing id/uid attributes when inserting a new contact (#1101)

This commit is contained in:
Thomas Bruederli 2012-10-17 11:27:54 +02:00
parent d74d5ff01f
commit 5be0b06fcb

View file

@ -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');