plugins/kolab_addressbook

Aleksander Machniak machniak at kolabsys.com
Wed Feb 20 09:38:10 CET 2013


 plugins/kolab_addressbook/lib/rcube_kolab_contacts.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8dfc52cae040e2459cda6c377fd3aa9697df42d9
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Wed Feb 20 09:36:04 2013 +0100

    Fix importing photo and notes fields (Bug #1635). Values of these fields
    were imported from vCard as one-element-arrays. Setting limit=1 on these
    fields makes that the array is converted to string as needed.

diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index b34cc6c..6e32bc7 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -65,8 +65,8 @@ class rcube_kolab_contacts extends rcube_addressbook
                                 'label' => 'kolab_addressbook.pgppublickey'),
       'pkcs7publickey' => array('type' => 'textarea', 'size' => 70, 'rows' => 10, 'limit' => 1,
                                 'label' => 'kolab_addressbook.pkcs7publickey'),
-      'notes'        => array(),
-      'photo'        => array(),
+      'notes'        => array('limit' => 1),
+      'photo'        => array('limit' => 1),
       // TODO: define more Kolab-specific fields such as: language, latitude, longitude, crypto settings
     );
 





More information about the commits mailing list