summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-01-06 10:34:55 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2015-01-06 10:34:55 (GMT)
commita651df532bd71ccc60a278bab58be75f5aacbc2d (patch)
tree9e2b5ce607a5e1f2b218f795d22cb873fa52fc35
parent21cc180730b3a82dbd2b758d9f785f8105dc8ace (diff)
downloadkolab-wap-a651df532bd71ccc60a278bab58be75f5aacbc2d.tar.gz
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
-rw-r--r--lib/kolab_client_task.php2
1 files changed, 1 insertions, 1 deletions
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