plugins/libkolab

Aleksander Machniak machniak at kolabsys.com
Mon Jul 1 08:30:07 CEST 2013


 plugins/libkolab/lib/kolab_format_contact.php |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 1f24f0b679ac3ce3f099d66d420c9fa8c2c57397
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Mon Jul 1 08:28:54 2013 +0200

    Force setting internal object type to prevent type overwrite
    when copying contacts from other sources (e.g. LDAP) (Bug #1990)

diff --git a/plugins/libkolab/lib/kolab_format_contact.php b/plugins/libkolab/lib/kolab_format_contact.php
index d8b5162..0c571f2 100644
--- a/plugins/libkolab/lib/kolab_format_contact.php
+++ b/plugins/libkolab/lib/kolab_format_contact.php
@@ -255,6 +255,8 @@ class kolab_format_contact extends kolab_format
 
         // TODO: handle language, gpslocation, etc.
 
+        // set type property for proper caching
+        $object['_type'] = 'contact';
 
         // cache this data
         $this->data = $object;





More information about the commits mailing list