lib/client

Aleksander Machniak machniak at kolabsys.com
Mon Jan 7 17:19:39 CET 2013


 lib/client/kolab_client_task_settings.php |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit b60f5bc01e8e4a4081bd11e211203142849110fc
Author: Aleksander Machniak <alec at alec.pl>
Date:   Mon Jan 7 17:17:56 2013 +0100

    Fix detection of auto_form_fields (e.g. 'alias') type (Bug #1512)

diff --git a/lib/client/kolab_client_task_settings.php b/lib/client/kolab_client_task_settings.php
index 849bc90..ec55c73 100644
--- a/lib/client/kolab_client_task_settings.php
+++ b/lib/client/kolab_client_task_settings.php
@@ -648,6 +648,10 @@ class kolab_client_task_settings extends kolab_client_task
                 if (empty($data['attributes']['form_fields'][$attr])) {
                     $valtype = 'auto-readonly';
                 }
+
+                if (empty($type) && !empty($data['attributes']['auto_form_fields'][$attr]['type'])) {
+                    $type = $data['attributes']['auto_form_fields'][$attr]['type'];
+                }
             }
 
             // set cell content





More information about the commits mailing list