plugins/kolab_addressbook

Thomas Brüderli bruederli at kolabsys.com
Wed Oct 17 11:28:17 CEST 2012


 plugins/kolab_addressbook/lib/rcube_kolab_contacts.php |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5be0b06fcbf61dacd493467b57041f808b04f1c7
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Wed Oct 17 11:27:54 2012 +0200

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

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





More information about the commits mailing list