lib/kolab_client_task.php

Aleksander Machniak machniak at kolabsys.com
Tue Jan 6 11:36:49 CET 2015


 lib/kolab_client_task.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a651df532bd71ccc60a278bab58be75f5aacbc2d
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Tue Jan 6 05:34:55 2015 -0500

    Fix error where users couldn't edit their data if their quota was set to 0 (#3198)
    
    It actually has been fixed as a general fix for handling non-empty values
    in user data when the form elements are generated

diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 5dce5bb..132f8d7 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -1365,7 +1365,7 @@ class kolab_client_task
                 $field['description'] = "$name.$idx.desc";
                 $field['section']     = $section_idx;
 
-                if (empty($field['value']) && !empty($data[$idx])) {
+                if (empty($field['value']) && $data[$idx] !== null && $data[$idx] !== '') {
                     $value = $data[$idx];
 
                     // Convert data for the list field with autocompletion




More information about the commits mailing list