Remove existing id/uid attributes when inserting a new contact (#1101)
This commit is contained in:
parent
d74d5ff01f
commit
5be0b06fcb
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue