summaryrefslogtreecommitdiff
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index b784856..5dce5bb 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -921,10 +921,14 @@ class kolab_client_task
break;
default:
- $result['type'] = kolab_form::INPUT_TEXT;
-
- if (isset($field['maxlength'])) {
- $result['maxlength'] = $field['maxlength'];
+ if (!empty($field['autocomplete'])) {
+ $result['type'] = kolab_form::INPUT_TEXTAREA;
+ $result['data-type'] = 'list';
+ $result['data-maxcount'] = 1;
+ $result['data-autocomplete'] = true;
+ }
+ else {
+ $result['type'] = kolab_form::INPUT_TEXT;
}
if ($field['type'] && $field['type'] != 'text') {
@@ -940,6 +944,10 @@ class kolab_client_task
else {
$result['default'] = $field['default'];
}
+
+ if (isset($field['maxlength'])) {
+ $result['maxlength'] = $field['maxlength'];
+ }
}
$result['required'] = empty($field['optional']);