summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-11-07 12:59:45 +0100
committerAleksander Machniak <alec@alec.pl>2013-11-07 12:59:45 +0100
commita23fae5ea56856555f7d2a7d993870bcf7bdc786 (patch)
treea06b2de94a2bfe2513aa77f21b9f05040e1816fb /lib/kolab_client_task.php
parent9ef0960d0d1c5463e8771659c5acb41f0c6d2e59 (diff)
downloadwebadmin-a23fae5ea56856555f7d2a7d993870bcf7bdc786.tar.gz
Support checkboxes for boolean LDAP values (Bug #2452)
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index ff7757d..c845126 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -1288,6 +1288,10 @@ class kolab_client_task
if (!empty($field['data-autocomplete'])) {
$assoc_fields[$idx] = !empty($data[$idx]) ? $data[$idx] : array();
}
+
+ if ($field['type'] == kolab_form::INPUT_CHECKBOX) {
+ $field['checked'] = $field['value'] == 'TRUE';
+ }
/*
if (!empty($field['suffix'])) {
$field['suffix'] = kolab_html::escape($this->translate($field['suffix']));